Skip to content

Instantly share code, notes, and snippets.

@Nikolay995
Last active April 16, 2018 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nikolay995/299cf1fb2d55df5a417d3d60809124c3 to your computer and use it in GitHub Desktop.
Save Nikolay995/299cf1fb2d55df5a417d3d60809124c3 to your computer and use it in GitHub Desktop.
Intellij IDEA - Cheat Sheet

Intellij IDEA - Cheat Sheet (aka my most used shortcuts)

Search/Replace

  • Double-press Shift - Search everywhere

Editing

  • Alt + J - Select the next occurrence (Sublime Text Style)
  • Shift + Ctrl + Alt + J - Select all occurrences
  • Alt + Shift + Mouse Click - Add/remove a selection (Multiple selection)

Usages Search

  • Ctrl + Shift + F7 - Highlight usages in file
  • Ctrl + Alt + F7 - Show usages

Navigation

  • Ctrl + N - Go to class
  • Ctrl + Shift + N - Go to file
  • Ctrl + Alt + Shift + N - Go to symbol
  • Ctrl + E Recent files popup
  • Ctrl + B , Ctrl + Click - Go to declaration
  • Ctrl + Alt + B - Go to implementation(s)
  • Ctrl + Shift + I - Open quick definition lookup
  • Ctrl + Shift + B - Go to type declaration
  • Ctrl + U - Go to super-method/super-class
  • Ctrl + H - Type hierarchy
  • Ctrl + Shift + H - Method hierarchy
  • Ctrl + Alt + H - Call hierarchy

Refactoring

  • Shift + F6 - Rename
  • Ctrl + Alt + V - Extract Variable
  • Ctrl + Alt + F - Extract Field
  • Ctrl + Alt + C - Extract Constant

Live Templates

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