IntelliJ Shortcuts

Enjoy this cheat sheet at its fullest within Dash, the macOS documentation browser.

General

CMD+0..9

Open corresponding tool window

CMD+ALT+Y

Synchronize

CMD+SHIFT+F12

Toggle maximizing editor

ALT+SHIFT+I

Inspect current file with current profile

CMD+,

Open Settings dialog

CMD+;

Open project structure dialog

CMD+SHIFT+A

Find action

Debugging

F8

Step over

F7

Step into

SHIFT+F8

Smart step into

SHIFT+F7

Step out

ALT+F9

Run to cursor

ALT+F8

Evaluate expression

CMD+ALT+R

Resume program

CMD+F8

Toggle breakpoint

CMD+SHIFT+F8

View breakpoint

Search / Replace

Editing

CTRL+Space

Basic code completion

CTRL+SHIFT+Space

Smart code completion

CMD+SHIFT+Enter

Complete statement

CMD+P

Parameter info

CTRL+J

Quick documentation lookup

SHIFT+F1

External Doc

CMD+Mouse

Brief Info

CMD+F1

Show descriptions of error at caret

CMD+N CTRL+Enter

Generate code...

CTRL+O

Override methods

CTRL+I

Implement methods

CMD+ALT+T

Surround with...

CMD+/

Comment / uncomment with line comment

CMD+ALT+/

Comment / uncomment with block comment

ALT+Page Up

Extend selection

ALT+Page Down

Shrink selection

ALT+SHIFT+Q

Context info

ALT+Click

Show intention actions and quick- xes

ALT+Enter

Reformat code

CTRL+ALT+O

Optimize imports

CTRL+ALT+I

Auto-indent line(s)

CMD+SHIFT+V

Paste from recent buffers

CMD+D

Duplicate current line

CMD+Return

Delete line at caret

CTRL+SHIFT+J

Smart line join

CMD+Enter

Smart line split

SHIFT+Enter

Start new line

CMD+SHIFT+U

Toggle case for word at caret or selected block

CMD+SHIFT+]

Select till code block end

CMD+SHIFT+[

Select till code block start

ALT+Return

Delete to word end

ALT+Return

Delete to word start

CMD++

Expand code block

CMD+-

Collapse code block

CMD+SHIFT++

Expand all

CMD+SHIFT+-

Collapse all

Refactoring

F5

Copy

F6

Move

CMD+Delete

Safe delete

SHIFT+F6

Rename

CTRL+T

Refactor this

CMD+F6

Change signature

CMD+ALT+N

Inline

CMD+ALT+M

Extract method

CMD+ALT+V

Extract variable

CMD+ALT+F

Extract field

CMD+ALT+C

Extract constant

CMD+ALT+P

Extract parameter

Navigation

CMD+O

Go to class

CMD+SHIFT+O

Go to file

CMD+ALT+O

Go to symbol

CTRL+Arrow Left

Go to next

F12

Go back to previous tool window

CMD+L

Go to line

CMD+E

Recent files popup

CMD+ALT+Arrow Left

Navigate back

CMD+ALT+Arrow Right

Navigate forward

CMD+SHIFT+Return

Navigate to last edit location

ALT+F1

Select current file or symbol in any view

CMD+B

Go to declaration

CMD+ALT+B

Go to implementation(s)

CMD+Y

Open quick definition lookup

CTRL+SHIFT+B

Go to type declaration

CMD+U

Go to super-method

CTRL+Page Up

Go to previous

CTRL+Page Down

Go to next method

CMD+]

Move to code block end

CMD+[

Move to code block start

CTRL+H

File structure popup

CMD+SHIFT+H

Type hierarchy

CMD+ALT+P

Method hierarchy

CTRL+ALT+H

Call hierarchy

F2

Next / previous highlighted error

F4

Edit source / View source

F3

Toggle bookmark

ALT+F3

Toggle bookmark with mnemonic

CTRL+0..9

Go to numbered bookmark

CMD+F3

Show bookmarks

Compile & Run

CMD+F9

Make project

CMD+SHIFT+F9

Compile selected file, package or module

CTRL+ALT+R

Select configuration run

CTRL+ALT+R

Run context configuration from editor

CTRL+ALT+D

Select configuration debug

Usage Search

CMD+F7

Find usages in file

ALT+F7

Find usages

CMD+SHIFT+F7

Highlight usages in file

CMD+ALT+F7

Show usages

VCS / Local History

CMD+K

Commit project to VCS

CMD+T

Update project from VCS

CMD+SHIFT+K

Push commits

CTRL+V

VCS quick popup

CMD+ALT+J

Surround with Live Template

CMD+J

Insert Live Template