CLion 2021.2 Help

Advanced editing

FunctionShortcutUse this shortcut to...
Comment with Line CommentCtrl+/Comment/uncomment current line or selected block with line comments.
Comment with Block CommentCtrl+Shift+/Comment/uncomment code with block comments.
Quick DocumentationCtrl+QShow a popup with the documentation for the symbol at caret.
Pop-up HectorCtrl+Alt+Shift+HShow the Highlighting level popup to configure highlighting in the current file.
Parameter InfoCtrl+PShow parameters of the function call at caret.
Error DescriptionCtrl+F1Show an error or warning description at the caret.
Override Methods...Ctrl+OOverride base class methods in the current class.
Surround with...Ctrl+Alt+TSurround the selected code fragment with conditional statements, loops, folding regions, or other constructs.
GenerateAlt+Insert Generate standard code constructs.
Basic Code Completion



Code completion for any class, method or variable.
SmartType Code CompletionCtrl+Shift+SpaceType-Matching completion filtering the lookup list based on the expected type.
Expand WordAlt+/Goes through the names of classes, methods, keywords and variables in the current visibility scope.
Insert Live Template...Ctrl+JShow a list of the available live templates starting with a specified prefix.
Surround with Live Template...Ctrl+Alt+JSurround a selection of code with a live template.
Next Template VariableTabIn templates: move the caret to the next template variable.
Previous Template VariableShift+TabIn templates: move the caret to the previous template variable.
Last modified: 07 September 2021