Shortcuts

This section describes common shortcuts of the IntelliJ IDEA. For more information, see related official documents.

Table 1 Shortcuts

Shortcut

Description

Alt + Left

(Required) Switches between multiple subwindows, such as Output and Debugger in the Debug window.

Alt + Right

(Required) Switches between multiple subwindows, such as Output and Debugger in the Debug window.

Alt + Up

(Required) Goes to the previous method.

Alt + Down

(Required) Goes to the next method.

Ctrl + =

Expands the code.

Ctrl + -

Folds the code.

Ctrl + /

(Required) Comments/Uncomments with line comment according to the file type.

Ctrl + F

(Required) Finds in file.

Ctrl + R

(Required) Replace

Ctrl + Z

(Required) Undo

Ctrl + Y

(Required) Deletes the line at caret.

Ctrl + X

Cuts the current line or selected block.

Ctrl + C

Copies the current line or selected block.

Ctrl + D

(Required) Duplicates the current line or selected block.

Ctrl + W

(Required) Extends selection. You can increase the scope of selection according to specific code constructs.

Ctrl + E

(Required) Displays recent files.

Ctrl + N

(Required) Quickly opens any class.

Ctrl + G

Goes to a line.

Ctrl + Q

Displays context info.

Ctrl + Alt + L

(Required) Reformats code, applying to the current file and the entire package directory.

Ctrl + Alt + O

(Required) Optimizes imports, applying to the current file and the entire package directory.

Ctrl + Shift + F

(Required) Finds in path.

Ctrl + Shift + R

(Required) Replaces in path.