CLion 2021.3 Help

Basic editing

Function

Shortcut

Use this shortcut to...

Enter

Enter

Depending on the context:

  • In a lookup list: select an item.

  • In the editor: enter a new line and set the caret at its beginning.

Tab

Tab

In the editor:

  • With selection: indent selected lines.

  • Without selection: insert a tab symbol (or corresponding number of space characters).

In a lookup list:

  • No code after the caret: select an item.

  • Some code after the caret: select an item and substitute the code after the caret with it.

Delete

Delete

Depending on the context:

  • In the editor: delete selected symbol/block.

  • In a usage view: exclude a selected item.

  • In other views: remove selected items.

Backspace

Backspace

Delete a character to the left of the caret.

Undo

Ctrl+Z

Undo last operation.

Redo

Ctrl+Shift+Z

Redo last undone operation.

Cut

Ctrl+X

Cut a current line or a selected code block to the Clipboard.

Copy

Ctrl+C

Copy a current line or a selected code block to the Clipboard.

Paste

Ctrl+V

Paste from the Clipboard to the caret location.

Paste from History

Ctrl+Shift+V

Paste selected entry from the Clipboard to the caret location.

Up

Up

Move the caret one line up.

Up with Selection

Shift+Up

Move the caret one line up selecting the text.

Down

Down

Move the caret one line down.

Down with Selection

Shift+Down

Move the caret one line down selecting the text.

Left

Left

Move the caret one character to the left.

Left with Selection

Shift+Left

Move the caret one character to the left selecting the text.

Right

Right

Move the caret one character to the right.

Right with Selection

Shift+Right

Move the caret one character to the right selecting the text.

Go to Page Bottom

Ctrl+Page Down

Move the caret down to the page bottom.

Go to Page Bottom with Selection

Ctrl+Shift+Page Down

Move the caret down to the page bottom, selecting the text.

Go to Page Top

Ctrl+Page Up

Move the caret up to the page top.

Go to Page Top with Selection

Ctrl+Shift+Page Up

Move the caret up to the page bottom, selecting the text.

Page Down

Page Down

Move the caret one page down.

Page Down with Selection

Shift+Page Down

Move the caret one page down, selecting the text.

Page Up

Page Up

Move the caret one page up.

Page Up with Selection

Shift+Page Up

Move the caret one page up, selecting the text.

Scroll Down

Ctrl+Down

Scroll the text one line down.

Scroll to Center

Ctrl+M

Scroll a line at caret to the center of the screen.

Scroll Up

Ctrl+Up

Scroll the text one line up.

Move to Line End

End

Move the caret to the end of line.

Move to Line End with Selection

Shift+End

Move the caret to the end of line, selecting the text.

Move to Line Start

Home

Move the caret to the beginning of line.

Move to Line Start with Selection

Shift+Home

Move the caret to the beginning of line, selecting the text.

Move to Next Word

Ctrl+Right

Move the caret to the next word.

Move to Next Word with Selection

Ctrl+Shift+Right

Move the caret to the next word, selecting it.

Move to Previous Word

Ctrl+Left

Move the caret to the previous word.

Move to Previous Word with Selection

Ctrl+Shift+Left

Move the caret to the previous word, selecting it.

Move to Text End

Ctrl+End

Move the caret to the end of text.

Move to Text End with Selection

Ctrl+Shift+End

Move the caret to the end of text, selecting it.

Move to Text Start

Ctrl+Home

Move the caret to the beginning of text.

Move to Text Start with Selection.

Ctrl+Shift+Home

Move the caret to the beginning of text, selecting it.

Select All

Ctrl+A

Select the entire text opened in the editor.

Delete Line at Caret

Ctrl+Y

Delete the line where the caret is currently located.

Delete to Word End

Ctrl+Delete

Delete the word starting from the current caret location up to the word end.

Delete to Word Start

Ctrl+Backspace

Delete the word starting from the current caret location up to the word start.

Toggle Insert/Overwrite

Insert

Toggle insert/overwrite modes.

Duplicate Line or Block

Ctrl+D

Duplicate selected block or the line at the caret.

Toggle Case

Ctrl+Shift+U

Toggle case of the selected text block.

Move to Code Block End

Ctrl+]

Move the caret to the current code block end, highlighting the block limits.

Move to Code Block End with Selection

Ctrl+Shift+]

Move the caret to the current code block end, selecting the code beginning from the initial caret location.

Move to Code Block Start

Ctrl+[

Move the caret to the current code block start, highlighting the block limits.

Move to Code Block Start with Selection

Ctrl+Shift+[

Move the caret to the current code block start, selecting the code beginning from the initial caret location.

Start New Line

Shift+Enter

Start a new line after the current one positioning the caret in accordance with the current indentation level.

Start New Line Before Current One

Ctrl+Alt+Enter

Start a new line before the current one.

Join Lines

Ctrl+Shift+J

Concatenate the selected lines into one or concatenate the line where the caret is currently located with the next line.

Split Line

Ctrl+Enter

Split the selected line at the point where the caret is located, leaving the caret at the end of the first line.

Select Word at Caret

Ctrl+W

Select successively increasing code blocks starting from the current caret location.

Unselect Word at Caret

Ctrl+Shift+W

Remove sequentially the selection made by the action.

Indent Selection

Tab

Move the selected block to the next indentation level.

Unindent Selection

Shift+Tab

Move the selected block to the previous indentation level.

Auto-Indent Lines

Ctrl+Alt+I

Indent the current line or selected block according to the Code Style settings.

Last modified: 08 March 2021