Using Hotkeys

This is a list of keyboard shortcuts. Keyboard shortcuts enable users to navigate efficiently in their IDE without reaching to the mouse.

List of Hotkeys

General
Description Shortcut

Search everywhere

2x Shift

2x

Basic code completion

Ctrl+Space

⌃ Space

Smart code completion

Ctrl+Shift+Space

⌃ ⇧ Space

Show intention actions and quick-fixes

Alt ↩

⌘ ↩

Open corresponding tool window

Alt+0 …​ Alt+9

⌘ 0 …​ ⌘ 9

Save all

Ctrl+S

⌘ S

Open Settings dialog

Ctrl+Alt+S

⌘,

Find Action

Ctrl+Shift+A

⌘ ⇧ A

Editing
Description Shortcut

Extend selection

Ctrl+W

⌥ ↑

Shrink selection

Ctrl+Shift+W

⌥ ↓

Toggle bold for the selected text

*

Toggle emphasize for the selected text

_

Toggle monospace font for the selected text

`

Toggle custom styling for the selected text

#

Toggle double quotes for the selected text

"

Toggle single quotes for the selected text

'

Toggle pass-through for the selected text

+ or $

Toggle superscript for the selected text1

^

Toggle subscript for the selected text1

~

Show intention actions and quick-fixes

Alt+Enter

⌥ ↩

Reformat code

Ctrl+Alt+L

⌘ ⌥ L

Auto-indent line(s)

Ctrl+Alt+I

⌃ ⌥ I

Indent/unindent selected lines

Tab / Shift+Tab

/ ⇧ ⇥

Cut current line to clipboard

Ctrl+X,Shift+Delete

⌘ X

Copy current line to clipboard

Ctrl+C,Ctrl+Insert

⌘ C

Paste from clipboard
(text or images)

Ctrl+V,Shift+Insert

⌘ V

Move current line up/down

Ctrl+Shift+Up / Ctrl+Shift+Down

⇧ ⌘ ↑ / ⇧ ⌘ ↓

Duplicate current line

Ctrl+D

⌘ D

Delete line at caret

Ctrl+Y

⌘ ⌫

Smart line join

Ctrl+Shift+J

⌃ ⇧ J

Smart line split

Ctrl+Enter

⌘ ↩

Start new line

Shift+Enter

⇧ ↩

Toggle case for word at caret or selected block

Ctrl+Shift+U

⌘ ⇧ U

Delete to word end

Ctrl+Delete

⌥ ⌫

Delete to word start

Ctrl+Backspace

⌥ Delete

Close active editor tab

Ctrl+F4

⌘ W

Basic code completion
(for example file names)

Ctrl+Space

^ Space

Smart code completion
(for example file names)

Ctrl+Shift+Space

^ ⇧ Space

Complete the statement
(for example macros)

Ctrl+Shift+Enter

⌘ ⇧ Enter

Quick documentation lookup

Ctrl+Q

^ J

Brief Info

Ctrl+mouse

+ mouse

Expand/collapse block or attribute

Ctrl+NumPad+ / NumPad-

⌘ + / ⌘ -

Expand/collapse all

Ctrl+Shift+NumPad+ / NumPad-

⌘ ⇧ + / ⌘ ⇧ -

Comment/uncomment with line comment

Ctrl+/

⌘ /

Comment/uncomment with block comment

Ctrl+Shift+/

⌘ ⌥ /

Select till the end of a code block

Ctrl+Shift+]

⌘ ⇧ ]

Select till the start of a code block

Ctrl+Shift+[

⌘ ⇧ [

Surround with…​
(Use it with ad-tag-include template in any language to add tags for includes.)

Ctrl+Alt+T

⌘ ⌥ T

Navigating
Description Shortcut

Go to declaration
Works also for file and class names in italics or monospace

Ctrl+B, Ctrl+Click

⌘ B, + click

Go to class

Ctrl+N

⌘ O

Go to file

Ctrl+Shift+N

⌘ ⇧ O

Go to symbol

Ctrl+Alt+Shift+N

⌘ ⌥ O

Go to next/previous editor tab

Alt+Right / Alt+Left

^ → / ^ ←

Go back to the previous tool window

F12

Go to editor (from the tool window)

Esc

Hide active or last active window

Shift+Esc

⇧ Esc

Go to line

Ctrl+G

⌘ L

Find in current file

Ctrl+F

⌘ F

Find usages

Alt+F7

Alt+Shift+7

⌥ F7

Replace in current file

Ctrl+R

⌘ R

Rename
(for example ID or file name)

Shift+F6

⇧ F6

Recent files popup

Ctrl+E

⌘ E

Navigate back/forward

Ctrl+Alt+Left/Right

⌘ ⌥ ← / ⌘ ⌥ →

Navigate to last edit location

Ctrl+Shift+Backspace

⌘ ⇧ ⌫

Select current file or symbol in any view

Alt+F1

⌥ F1

Go to declaration

Ctrl+B,Ctrl+Click

⌘ B, + click

File structure popup

Ctrl+F12

⌘ F12

Show navigation bar

Alt+Home

⌥ Home

Toggle bookmark

F11

F3

Toggle bookmark with mnemonic

Ctrl+F11

⌥ F3

Go to numbered bookmark

Ctrl+0 …​ Ctrl+9

^ 0 …​ ^ 9

Show bookmarks

Shift+F11

⌘ F3

1: Supported from plugin version 0.38.5

Further reading

See the reference card of the default key map available on the JetBrains website.