CLion Inlay Hints - 取消 CLion 灰色的参数和类型提示
CLion Inlay Hints - 取消 CLion 灰色的参数和类型提示
- 1. Parameter hints for C/C++
- 1.1. Toggle parameter hints globally
- 2. Type hints for C/C++
- 2.1. Toggle type hints globally
- 3. Toggle inlay hints globally
- References
https://www.jetbrains.com/help/clion/2024.3/inlay-hints.html
Inlay hints are special markers that appear in the editor and provide you with additional information about your code, like the names of the parameters. Other types of hints inform you about annotations, usages, and so on (depending on the language).
In inlay hints settings, you can configure what types of information you want to get in hints.
For more information about the C/C++ specific hints, refer to Parameter hints for C/C++ and Type hints for C/C++.
The list of available languages, contexts, and hint types depends on the installed/enabled plugins.
1. Parameter hints for C/C++
https://www.jetbrains.com/help/clion/2024.3/parameter-hints.html
1.1. Toggle parameter hints globally
Parameter hints are enabled by default. To hide them, use one of the following options:
- Go to Settings | Editor | Inlay Hints | Parameter names and clear the C/C++ checkbox or specific checkboxes in the node.
- In the editor, right-click a parameter hint and select Disable hints from the context menu.
2. Type hints for C/C++
https://www.jetbrains.com/help/clion/2024.3/type-hints.html
2.1. Toggle type hints globally
Type hints are enabled by default. To hide them, use one of the following options:
- Go to Settings | Editor | Inlay Hints | Types and clear the C/C++ checkbox to hide all the type hints or a particular checkbox to hide only some of them.
Disabling Variables doesn’t affect Obvious Types and Lambdas, they should be disabled separately if required.
- In the editor, right-click a hint and select the option from the context menu:
3. Toggle inlay hints globally
File -> Settings -> Editor -> Inlay Hints
References
[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/