Skip to content

Instantly share code, notes, and snippets.

@mikekpl
Created February 21, 2024 15:39
Show Gist options
  • Save mikekpl/b020ce20ebe37a82ae86553363b6095a to your computer and use it in GitHub Desktop.
Save mikekpl/b020ce20ebe37a82ae86553363b6095a to your computer and use it in GitHub Desktop.
IntelliJ Shortcuts

macOS

Purpose Key Shortcut
Smart Code Completion ⌃⇧Space
Search Everywhere Double⇧
Show Intention Actions and Quick-Fixes ⌥↩
Generate Code ⌘N, ⌃↩︎
Parameter Info ⌘P
Extend Selection ⌥↑
Shrink Selection ⌥↓
Recent Files Popup ⌘E
Rename ⇧F6
Open Corresponding Tool Window ⌘0...⌘9
Save All ⌘S
Synchronize ⌘⌥Y
Toggle Maximizing Editor ⌘⇧F12
Inspect Current File with Current Profile ⌥⇧I
Quick Switch Current Scheme `⌃``
Open Settings Dialog ⌘,
Open Project Structure Dialog ⌘;
Find Action ⌘⇧A

DEBUGGING:

Step Over / Into F8 / F7
Smart Step Into / Step Out ⇧F7 / ⇧F8
Run to Cursor ⌥F9
Evaluate Expression ⌥F8
Resume Program ⌘⌥R
Toggle Breakpoint ⌘F8
View Breakpoints ⌘⇧F8

SEARCH & REPLACE:

Search Everywhere Double⇧
Find ⌘F
Find Next / Previous ⌘G / ⌘⇧G
Replace ⌘R
Find in Path ⌘⇧F
Replace in Path ⌘⇧R
Select Next Occurrence ⌃G
Select All Occurrences ⌃⌘G
Unselect Occurrence ⌃G

EDITING:

Basic Code Completion ⌃Space
Smart Code Completion ⌃⇧Space
Complete Statement ⌘⇧↩︎
Parameter Info ⌘P
Quick Documentation Lookup ⌘J, F1
External Doc ⇧F1
Brief Info ⌘ + mouse
Show Descriptions of Error at Caret ⌘F1
Generate Code... ⌘N, ⌃↩︎
Override Methods ⌃O
Implement Methods ⌃I
Surround With… ⌘⌥T
Comment / Uncomment with Line Comment ⌘/
Comment / Uncomment with Block Comment ⌘⌥/
Extend Selection ⌥↑
Shrink Selection ⌥↓
Context Info ⌃⇧Q
Show Intention Actions and Quick-Fixes ⌥ ↩
Reformat Code ⌘⌥L
Optimize Imports ⌃ ⌥ O
Auto-Indent Line(s) ⌃ ⌥ I
Indent / Unindent Selected Lines ⇥ /⇧⇥
Cut Current Line to Clipboard ⌘X
Copy Current Line to Clipboard ⌘C
Paste from Clipboard ⌘V
Paste from Recent Buffers... ⌘⇧V
Duplicate Current Line ⌘D
Delete Line at Caret ⌘⌨
Smart Line Join ⌃⇧J
Smart Line Split ⌘↩
Start New Line ⇧↩
Toggle Case for Word at Caret or Selected Block ⌘⇧U
Select Till Code Block End / Start ⌘⌥⇧[ / ⌘⌥⇧]
Delete to Word End ⌥ ⌦
Delete to Word Start ⌥ ⌨
Expand / Collapse Code Block ⌘ + / ⌘ -
Expand All ⌘⇧+
Collapse All ⌘⇧-
Close Active Editor Tab ⌘W

REFACTORING:

Copy F5
Move F6
Safe Delete ⌘Delete
Rename ⇧F6
Refactor This ⌃T
Change Signature ⌘F6
Inline ⌘⌥N
Extract Method ⌘⌥M
Extract Variable ⌘⌥V
Extract Field ⌘⌥F
Extract Constant ⌘⌥C
Extract Parameter ⌘⌥P

NAVIGATION:

Go to Class ⌘O
Go to File ⌘⇧O
Go to Symbol ⌘⌥O
Go to Next / Previous Editor Tab ⌃← / ⌃→
Go Back to Previous Tool Window F12
Go to Editor (from Tool Window)
Hide Active or Last Active Window ⇧⎋
Go to Line ⌘L
Recent Files Popup ⌘E
Recent Locations Popup ⌘⇧E
Navigate Back / Forward ⌘⌥← / ⌘⌥→
Navigate to Last Edit Location ⌘⇧⌨
Select Current File or Symbol in Any View ⌥F1
Go to Declaration ⌘B, ⌘Click
Go to Implementation(s) ⌘ ⌥ B
Open Quick Definition Lookup ⌥Space, ⌘Y
Go to Type Declaration ⌃⇧B
Go to Super-Method / Super-Class ⌘U
Go to Previous / Next Method ⌃↑ / ⌃↓
Move to Code Block End / Start ⌘ ⌥ [ / ⌘ ⌥ ]
File Structure Popup ⌘F12
Type Hierarchy ⌃H
Method Hierarchy ⌘⇧H
Call Hierarchy ⌃⌥H
Next / Previous Highlighted Error F2 / ⇧F2
Edit Source / View Source F4 / ⌘ ↓
Show Navigation Bar ⌥Home
Toggle Bookmark F3
Toggle Bookmark with Mnemonic ⌥F3
Go to Numbered Bookmark ⌃0 ...⌃9
Show Bookmarks ⌘F3

COMPILE:

Build Project ⌘F9
Compile Selected File, Package, or Module ⌘⇧F9
Select Configuration and Run / Debug ⌃⌥R / D
Run / Debug ⌃R / D
Run Context Configuration from Editor ⌃⇧R, ⌃⇧D
Run Anything Double ⌃

USAGE SEARCH:

Find Usages / Find Usages in File ⌥F7 / ⌘F7
Highlight Usages in File ⌘⇧F7
Show Usages ⌘⌥F7

VERSION CONTROL & LOCAL HISTORY:

Commit Project to VCS ⌘K
Update Project from VCS ⌘T
Push Commits ⌘⇧K
VCS Quick Popup ⌃V

LIVE TEMPLATES:

Surround with Live Template ⌘⌥J
Insert Live Template ⌘J

Windows & Linux

Purpose Key Shortcut
Smart Code Completion Ctrl + Shift + Space
Search Everywhere Double Shift
Show Intention Actions and Quick-Fixes Alt + Enter
Generate Code Alt + Ins
Parameter Info Ctrl + P
Extend Selection Ctrl + W
Shrink Selection Ctrl + Shift + W
Recent Files Popup Ctrl + E
Rename Shift + F6
Open Corresponding Tool Window Alt + #[0-9]
Save All Ctrl + S
Synchronize Ctrl + Alt + Y
Toggle Maximizing Editor Ctrl + Shift + F12
Inspect Current File with Current Profile Alt + Shift + I
Quick Switch Current Scheme Ctrl + BackQuote ()
Open Settings Dialog Ctrl + Alt + S
Open Project Structure Dialog Ctrl + Alt + Shift + S
Find Action Ctrl + Shift + A

DEBUGGING:

Step Over / Into F8 / F7
Smart Step Into / Step Out Shift + F7 / Shift + F8
Run to Cursor Alt + F9
Evaluate Expression Alt + F8
Resume Program F9
Toggle Breakpoint Ctrl + F8
View Breakpoints Ctrl + Shift + F8

SEARCH & REPLACE:

Search Everywhere Double Shift
Find Ctrl + F
Find Next / Previous F3 / Shift + F3
Replace Ctrl + R
Find in Path Ctrl + Shift + F
Replace in Path Ctrl + Shift + R
Select Next Occurrence Alt + J
Select All Occurrences Ctrl + Alt + Shift + J
Unselect Occurrence Alt + Shift + J

EDITING:

Basic Code Completion Ctrl + Space
Smart Code Completion Ctrl + Shift + Space
Complete Statement Ctrl + Shift + Enter
Parameter Info Ctrl + P
Quick Documentation Lookup Ctrl + Q
External Doc Shift + F1
Brief Info Ctrl + Mouse
Show Descriptions of Error at Caret Ctrl + F1
Generate Code Alt + Insert
Override Methods Ctrl + O
Implement Methods Ctrl + I
Surround With… Ctrl + Alt + T
Comment / Uncomment with Line Comment Ctrl + /
Comment / Uncomment with Block Comment Ctrl + Shift + /
Extend Selection Ctrl + W
Shrink Selection Ctrl + Shift + W
Context Info Alt + Q
Show Intention Actions and Quick-Fixes Alt + Enter
Reformat Code Ctrl + Alt + L
Optimize Imports Ctrl + Alt + O
Auto-Indent Line(s) Ctrl + Alt + I
Indent / Unindent Selected Lines Tab / Shift + Tab
Cut Current Line to Clipboard Ctrl + X, Shift + Delete
Copy Current Line to Clipboard Ctrl + C , Ctrl + Insert
Paste from Clipboard Ctrl + V, Shift + Insert
Paste from Recent Buffers... Ctrl + Shift + V
Duplicate Current Line Ctrl + D
Delete Line at Caret Ctrl + Y
Smart Line Join Ctrl + Shift + J
Smart Line Split Ctrl + Enter
Start New Line Shift + Enter
Toggle Case for Word at Caret or Selected Block Ctrl + Shift + U
Select Till Code Block End / Start Ctrl + Shift + ] / [
Delete to Word End Ctrl + Delete
Delete to Word Start Ctrl + Backspace
Expand / Collapse Code Block Ctrl + NumPad+ / -
Expand All Ctrl + Shift + NumPad+
Collapse All Ctrl + Shift + NumPad-
Close Active Editor Tab Ctrl + F4

REFACTORING:

Copy F5
Move F6
Safe Delete Alt + Delete
Rename Shift + F6
Refactor This Ctrl + Alt + Shift + T
Change Signature Ctrl + F6
Inline Ctrl + Alt + N
Extract Method Ctrl + Alt + M
Extract Variable Ctrl + Alt + V
Extract Field Ctrl + Alt + F
Extract Constant Ctrl + Alt + C
Extract Parameter Ctrl + Alt + P

NAVIGATION:

Go to Class Ctrl + N
Go to File Ctrl + Shift + N
Go to Symbol Ctrl + Alt + Shift + N
Go to Next / Previous Editor Tab Alt + Right / Left
Go Back to Previous Tool Window F12
Go to Editor (from Tool Window) Esc
Hide Active or Last Active Window Shift + Esc
Go to Line Ctrl + G
Recent Files Popup Ctrl + E
Recent Locations Popup Ctrl + Shift + 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
Go to Declaration Ctrl + B, Ctrl + Click
Go to Implementation(s) Ctrl + Alt + B
Open Quick Definition Lookup Ctrl + Shift + I
Go to Type Declaration Ctrl + Shift + B
Go to Super-Method / Super-Class Ctrl + U
Go to Previous / Next Method Alt + Up / Down
Move to Code Block End / Start Ctrl + ] / [
File Structure Popup Ctrl + F12
Type Hierarchy Ctrl + H
Method Hierarchy Ctrl + Shift + H
Call Hierarchy Ctrl + Alt + H
Next / Previous Highlighted Error F2 / Shift + F2
Edit Source / View Source F4 / Ctrl + Enter
Show Navigation Bar Alt + Home
Toggle Bookmark F11
Toggle Bookmark with Mnemonic Ctrl + F11
Go to Numbered Bookmark Ctrl + #[0-9]
Show Bookmarks Shift + F11

COMPILE:

Build Project Ctrl + F9
Compile Selected File, Package, or Module Ctrl + Shift + F9
Select Configuration and Run / Debug Alt + Shift + F10 / F9
Run / Debug Shift + F10 / F9
Run Context Configuration from Editor Ctrl + Shift + F10
Run Anything Double Ctrl

USAGE SEARCH:

Find Usages / Find Usages in File Alt + F7 / Ctrl + F7
Highlight Usages in File Ctrl + Shift + F7
Show Usages Ctrl + Alt + F7

VERSION CONTROL & LOCAL HISTORY:

Commit Project to VCS Ctrl + K
Update Project from VCS Ctrl + T
Push Commits Ctrl + Shift + K
VCS Quick Popup Alt + BackQuote ()

LIVE TEMPLATES:

Surround with Live Template Ctrl + Alt + J
Insert Live Template Ctrl + J
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment