Available for: C/C++, Rust, Objective-C/C++, and other supported languages and CMake scripts.
Invoke: on hover or Ctrl+Q
Quick Documentation popup is a universal tool to help you get more information on a code element at caret. CLion shows quick documentation in a popup on mouseover automatically. Depending on the element you invoke it for, the popup can include:
Function signature details.
Code documentation (either regular or Doxygen comments).
Inferred types, which is especially valuable for modern C++ that might lack explicit types. For example:
Macro replacements to help you better understand and debug nested macros (like Boost.Test or Catch macros). In the popup, you will see the final macro replacement properly formatted, with highlighted strings and keywords:
Values of constant expressions evaluated at compile time:
Compile-time evaluation is especially helpful when working with constexpr and consteval calculations and in template metaprogramming:
note
CLion doesn't show values for macros because they can be incomplete, but it shows macro replacements.
Enumeration values as an integer:
In CMake scripts, documentation for standard CMake variables, commands, properties, modules, and policies:
note
CLion always shows documentation for the bundled CMake version.
Disable quick documentation on mouseover
In the Settings/Preferences dialog (Ctrl+Alt+S), go to Editor | Code Editing | Quick Documentation and clear the Show quick documentation on hover checkbox.
You can also click in the popup and disable the Show on Mouse Move option.
In this case, to view documentation for a symbol at caret, press Ctrl+Q or click View | Quick Documentation from the main menu.
Click in the popup to change the font size, display the quick documentation toolbar, or go to the source code. Press Ctrl+Q to switch between the popup and the tool window.
tip
To specify the delay in milliseconds after which the popup should appear, In the Settings/Preferences dialog (Ctrl+Alt+S), go to Editor | Code Editing | Editor Tooltips and enter the necessary value in the Tooltip delay field.