Skip to content

Instantly share code, notes, and snippets.

@dkim
Last active March 24, 2025 17:00
Show Gist options
  • Save dkim/4e2ad23ab4637334b3af43d39c686ade to your computer and use it in GitHub Desktop.
Save dkim/4e2ad23ab4637334b3af43d39c686ade to your computer and use it in GitHub Desktop.
IntelliJ IDEA Keymap

IntelliJ IDEA Keymap

File

Shortcut Description

Shift+Command+N

File / New / Scratch File

Ctrl+Alt+N

New in This Directory…​

Create new class, interface, file or directory

Edit

Shortcut Description

Shift+Command+V

Edit / Paste from History..

Command+Backspace

Delete Line

Ctrl+G

Edit / Find / Add Selection for Next Occurrence

Set multiple cursors by adding the next occurrence of the current word to the selection.

Ctrl+Command+G

Edit / Find / Select All Occurrences

Set multiple cursors by adding all occurrences of the current word to the selection.

Alt+Shift+Button1

Add or Remove Caret

Set multiple cursors in the current file to edit multiple lines of code simultaneously.

Edit / Find / Search Structurally…​

Alt+F7

Edit / Find / Find Usages

Alt+Command+F7

Edit / Find / Show Usages

Shift+Command+F7

Edit / Find / Highlight Usages in File

Alt+

Edit / Extend Selection

Alt+

Edit / Shrink Selection

Shift+Command+Enter

Edit / Complete Current Statement

Command+D

Edit / Duplicate Line

View

Shortcut Description

Command+1

View / Tool Windows / Project

Command+7

View / Tool Windows / Structure

Command+9

View / Tool Windows / Version Control

Alt+F12

View / Tool Windows / Terminal

Command+Command

Alt+Space

View / Quick Definition

F1

View / Quick Documentation

Command+P

View / Parameter Info

Ctrl+Shift+P

View / Type Info

Shift+Command+P

View / Implicit Parameters

Command+

View / Jump to Source

Depending on the context:

  • In Tool Windows: Open an Editor tab or tabs for the selected item or items (including GUI forms), and give focus to the last opened file.

Command+E

View / Recent Files

Shift+Command+E

View / Recently Changed Files

Ctrl+`

View / Quick Switch Scheme…​

Navigate

Shortcut Description

Command+O

Navigate / Class…​

Shift+Command+O

Navigate / File…​

Alt+Command+O

Navigate / Symbol…​

Shift+Shift

Search Everywhere

Command+[

Navigate / Back

Undo last navigation operation.

Command+]

Navigate / Forward

Redo last undone navigation operation.

Alt+F1

Navigate / Select In…​

Command+

Navigate / Jump to Navigation Bar

Command+B

Navigate / GoTo

Navigate to the declaration of the symbol at caret

Alt+Command+B

Navigate / Implementation(s)

Shift+Command+B

Navigate / Type Declaration

Navigate to the declaration of the symbol’s type at caret

Command+U

Navigate / Super Method

Shift+Command+T

Navigate / Test

Command+F12

Navigate / File Structure

Popup structure of the current file for quick navigation

Ctrl+H

Navigate / Type Hierarchy

Shift+Command+H

Navigate / Method Hierarchy

Browse method hierarchy for the selected method

Ctrl+Alt+H

Navigate / Call Hierarchy

Ctrl+Q

Navigate / Implicit Conversion

F2

Navigate / Next Highlighted Error

Shift+F2

Navigate / Previous Highlighted Error

Code

Shortcut Description

Command+N

Code / Generate…​

Depending on the context:

  • In the navigation views: create a new class, file or directory, using the New pop-up menu.

  • In the editor: create constructors, accessor methods, EJB components, Maven dependencies, and test methods, using the Generate pop-up menu.

Alt+Command+T

Code / Surround With…​

Ctrl+Space

Code / Completion / Basic

Ctrl+Shift+Space

Code / Completion / SmartType

Alt+/

Code / Completion / Cyclic Expand Word

Command+J

Code / Insert Live Template…​

Alt+Command+J

Code / Surround With Live Template…​

Alt+Command+L

Code / Reformat Code

Ctrl+Alt+I

Code / Auto-Indent Lines

Indent current line or selected block according to the code style settings.

Alt+Shift+

Code / Move Line Up

Alt+Shift+

Code / Move Line Down

Analyze

Shortcut Description

Analyze / Inspect Code…​

Analyze / Code Cleanup…​

Run cleanup inspections and apply quick fixes.

Alt+Shift+Command+I

Analyze / Run Inspection by Name

Analyze / Analyze Dependency Matrix…​

Analyze / Analyze Data Flow to Here

Refactor

Shortcut Description

Ctrl+T

Refactor / Refactor This…​

Shfit+F6

Refactor / Rename…​

Run

Shortcut Description

Ctrl+R

Run / Run

Ctrl+D

Run / Debug

Ctrl+Alt+R

Run / Run…​

Ctrl+Alt+D

Run / Debug…​

Command+F2

Run / Stop

F8

Run / Step Over

F7

Run / Step Into

Alt+Command+R

Run / Resume Program

Alt+F8

Run / Evaluate Expression…​

Command+F8

Run / Toggle Line Breakpoint

Ctrl+Shift+D

Debug context configuration

Tools

Shortcut Description

Shift+Command+D

Tools / Run Scala Console

VCS

Shortcut Description

Ctrl+V

VCS / VCS Operations Popup…​

Command+K

VCS / Commit…​

Command+D

Version Control Systems / Show Diff

Window

Shortcut Description

Shift+Command+F12

Window / Active Tool Window / Hide All Tool Windows or Restore Windows

Shift+Command+

Window / Active Tool Window / Resize / Strecth to Right

Shift+Command+

Window / Active Tool Window / Resize / Strecth to Left

Help

Shortcut Description

Shift+Command+A

Help / Find Action…​

Help / Productivity Guide

Other

Shortcut Description

Alt+Enter

Show Intention Actions

Shift+F4

Open source in new window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment