CLion 2024.3 Help

Type hints for C/C++

To increase code readability, CLion provides type hints in the editor inlined with your code. For example, type hints are shown for deduced types:

Type hints for deduced types

Also, the hints are present for auto variables and structured bindings:

Type hints for auto variables and structured bindings

Another example is lambda return types:

Type hints for lambda return types

Watch this video to learn more about parameter hints and type hints:

Toggle type hints

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.

    Type hints settings
  • In the editor, right-click a hint and select the option from the context menu:

    Hints context menu
Last modified: 26 May 2024