Show Menu
Cheatography

IntelliJ for Eclipse Users Cheat Sheet by

Keyboard shortcuts for IntelliJ mapped from corresponding shortcuts in Eclipse and other useful information when going from Eclipse to IntelliJ.

Navigation (Mac)

 
Ecli­pse
Inte­lliJ
Open Type
⇧⌘T
⇧⌘O or ⇧ twice
Open Resource
⇧⌘R
⌘O or ⇧ twice
Go to Declar­ation
F3
⌘B
Type Hierarchy
F4
⌃H
Quick Outline
⌘2
⌘F12
Recent Files
 
⌘E
Refere­nce­s/U­sages
⇧⌘G
⌥F7
Find in Files
⌃H
⇧⌘F

Editing (Mac)

 
Ecli­pse
Inte­lliJ
Move Line(s)
⌥↑ and ⌥↓
⇧⌥↑ and ⇧⌥↓
Move Method
 
⇧⌘↑ and ⇧⌘↓
Delete Line
⌘D
⌘⌫
Duplicate Line
⌘⌥↑ and ⌘⌥↓
⌘D
Quick Fix
⌘1
⌥↩
Optimize Imports
⇧⌘O
⌘⌥O
Format Source
⇧⌘F
⌘⌥L
Collapse Method
 
⌘-
Expand Method
 
⌘=
Collapse All Methods
 
⇧⌘-
Expand All Methods
 
⇧⌘=
Template Wrap / Surround With
 
⌘⌥T
Template Unwrap
 
⇧⌘⌫
Extend­/Shrink Selection
 
⌥↑ and ⌥↓

Refact­oring (Mac)

 
Ecli­pse
Inte­lliJ
Rename
F2 or ⌘⌥R
⇧F6
Extract Method
⌘⌥M
Extract Local Variable
⌘⌥L
⌘⌥V

Debug (Mac)

 
Ecli­pse
Inte­lliJ
Toggle Breakpoint
⇧⌘B
⌘F8
Debug
⌘F11
⌃⌥D
Run
⌃⌘F11
⌃⌥R
Step Into
F5
F7
Step Over
F6
F8
Step Out
F7
⇧F8
Resume
F8
F9
Stop
Shift+F11
⌘F2
Inspec­t/E­valuate
⇧⌘I
⌥F8 or ⌃⌥F8

Settings

"­­Camel Hump" Words
Editor | General | Smart Keys
Enable Use "­­Ca­m­e­lH­­ump­­s" words.
Disable Honor "­­Ca­m­e­lH­­ump­­s" words settings when selecting on double click.


Case Insensitve Code Comple­tion
Editor | General | Code Comple­tion
Disable Match case.


Useful Key Mappings (Mac)
Keymap
Set Main Menu | Code | Comment with Line Comment to ⌘7.
Set Main Menu | Window | Editor Tabs | Close All Tabs to ⇧⌘W.
Set Main Menu | Window | Editor Tabs | Select Next Tab to ⌃⇟.
Set Main Menu | Window | Editor Tabs | Select Previous Tab to ⌃⇞.
Set Editor Actions | Move Caret to Text Start to ⌘↑.
Set Editor Actions | Move Caret to Text Start with Selection to ⇧⌘↑.
Set Editor Actions | Move Caret to Text End to ⌘↓.
Set Editor Actions | Move Caret to Text End with Selection to ⇧⌘↓.
 

Navigation (Windows)

 
Ecli­pse
Inte­lliJ
Open Type
Shift+­Ctrl+T
Ctrl+N or Shift twice
Open Resource
Shift+­Ctrl+R
Shift+­Ctrl+N or Shift twice
Go to Declar­ation
F3
Ctrl+B
Type Hierarchy
F4
Ctrl+H
Quick Outline
Ctrl+O
Ctrl+F12
Recent Files
 
Ctrl+E
Refere­­nc­e­s­/U­­sages
Shift+­Ctrl+G
Alt+F7
Find in Files
Ctrl+H
Shift+­Ctrl+F

Editing (Windows)

 
Ecli­pse
Inte­lliJ
Move Line(s)
Alt+↑ and Alt+↓
Shift+­Alt+↑ and Shift+­Alt+↓
Move Method
 
Shift+­Ctrl+↑ and Shift+­Ctrl+↓
Delete Line
Ctrl+D
Ctrl+Y
Duplicate Line
Ctrl+Alt+↑ and Ctrl+Alt+↓
Ctrl+D
Quick Fix
Ctrl+1
Alt+Enter
Optimize Imports
Shift+­Ctrl+O
Ctrl+Alt+O
Format Source
Shift+­Ctrl+F
Ctrl+Alt+L
Collapse Method
 
Shift+­Ctr­l+N­umPad +
Expand Method
 
Ctrl+N­umPad +
Collapse All Methods
 
Ctrl+N­umPad +
Expand All Methods
 
Shift+­Ctr­l+N­umPad +
Template Wrap / Surround With
 
Ctrl+Alt+T
Template Unwrap
 
Shift+­Ctr­l+D­elete
Extend­/Shrink Selection
 
Ctrl+W and Ctrl+S­hift+W

Refact­oring (Windows)

 
Ecli­pse
Inte­lliJ
Rename
Shift+­Alt+R
Ctrl+Alt+R
Extract Method
Shift+­Alt+M
Ctrl+Alt+M
Extract Local Variable
Shift+­Alt+L
Ctrl+Alt+V

Debug (Windows)

 
Ecli­pse
Inte­lliJ
Toggle Breakpoint
Shift+­Ctrl+B
Ctrl+F8
Debug
F11
Shift+F9
Run
Ctrl+F11
Shift+F10
Step Into
F5
F7
Step Over
F6
F8
Step Out
F7
Shift+F8
Resume
F8
F9
Stop
Shift+F11
Ctrl+F2
Inspec­t/E­valuate
Shift+­Ctrl+I
Alt+F8 or Ctrl+A­lt+F8
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          VLC (Windows & OS X) Keyboard Shortcuts
          tmux the terminal multiplexer Cheat Sheet
          IDEs Cheat Sheet