CLion 2023.1 Help

Advanced editing

Function

Shortcut

Use this shortcut to...

Comment with Line Comment

Control+/

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

Comment with Block Comment

Control+Shift+/

Comment/uncomment code with block comments.

Quick Documentation

Control+Q

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

Pop-up Hector

Control+Alt+Shift+H

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

Parameter Info

Control+P

Show parameters of the function call at caret.

Error Description

Control+F1

Show an error or warning description at the caret.

Override Methods...

Control+O

Override base class methods in the current class.

Surround with...

Control+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

Control+Space

Alt+/

Code completion for any class, method or variable.

SmartType Code Completion

Control+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...

Control+J

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

Surround with Live Template...

Control+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: 18 January 2023