CLion 2022.1 Help

Advanced editing

Function

Shortcut

Use this shortcut to...

Comment with Line Comment

Ctrl+/

Comment/uncomment current line or selected block with line comments.

Comment with Block Comment

Ctrl+Shift+/

Comment/uncomment code with block comments.

Quick Documentation

Ctrl+Q

Show a popup with the documentation for the symbol at caret.

Pop-up Hector

Ctrl+Alt+Shift+H

Show the Highlighting level popup to configure highlighting in the current file.

Parameter Info

Ctrl+P

Show parameters of the function call at caret.

Error Description

Ctrl+F1

Show an error or warning description at the caret.

Override Methods...

Ctrl+O

Override base class methods in the current class.

Surround with...

Ctrl+Alt+T

Surround the selected code fragment with conditional statements, loops, folding regions, or other constructs.

Generate

Alt+Insert

Generate standard code constructs.

Basic Code Completion

Ctrl+Space

Alt+/

Code completion for any class, method or variable.

SmartType Code Completion

Ctrl+Shift+Space

Type-Matching completion filtering the lookup list based on the expected type.

Expand Word

Alt+/

Goes through the names of classes, methods, keywords and variables in the current visibility scope.

Insert Live Template...

Ctrl+J

Show a list of the available live templates starting with a specified prefix.

Surround with Live Template...

Ctrl+Alt+J

Surround a selection of code with a live template.

Next Template Variable

Tab

In templates: move the caret to the next template variable.

Previous Template Variable

Shift+Tab

In templates: move the caret to the previous template variable.

Last modified: 25 July 2022