IntelliJ Shortcuts for Mac OS X 10.5+

less than 1 minute read

Legend

  • Shift: ⇧
  • Control: ⌃
  • Alt/Option: ⌥
  • Command: ⌘
  • Enter/Return: ⏎

Execution

  • Run program: ⌃ R
  • Debug program: ⌃ D
  • Stop JVM: ⌘ F2

Bookmarks

  • Toggle bookmark: F3
  • Toggle bookmark with mnemonic: ⌥ F13
  • Go to numbered bookmark: ⌃0…⌃9
  • Show bookmarks: ⌘ F3

Breakpoints

  • Toggle breakpoint: ⌘ F8
  • View breakpoints: ⌘ ⇧ F8

Debugging

  • Step over / into: F8 / F7
  • Smart step into / Step out Run to cursor: ⇧ F7 / ⇧ F8
  • Run to cursor: ⌥ F9
  • Evaluate expression: ⌥ F8
  • Resume program: ⌘ ⌥ R

Editing Existing Code

  • Multiple cursors: ⇧ ⌥ Clicks
  • Toggle Column Selection mode: ⇧ ⌘ 8
  • Smart line join: ⇧ ⌃ J
  • Format code: ⌥ ⌘ L
  • Organize imports: ⌃ ⌥ O
  • Change method signature: ⌘ F6

Editing New Code

  • Surround with: ⌥ ⌘ T
  • Suggestions: ⌥ ⏎
  • Generate: ⌃ ⏎
  • Basic code completion: ⌃ Space
  • Smart code completion: ⌃ ⇧ Space

Various

  • Dictionary of actions or options: ⇧ ⌘ A
  • Toggle the terminal tool window visibility: ⌥ F12
  • Preferences: ⌘ ,
  • Project Structure: ⌘ ;
  • Next / previous highlight: F2 / ⇧ F2