Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Essential Shortcuts for Jetbrains IDEs, including IntelliJ IDEA, Android Studio & others.

Jetbrains IDE Essential Shortcuts

This is a list of Jetbrains IDE shortcuts I use everyday.

Comments welcome! Tell me your favorites.

Navigating Between Windows

Change Focus to Window

  • Alt + 1 : Project
  • Alt + Number : Corresponding window
  • Esc : Editor

Editor Shortcuts

Navigation in Editor

  • Alt + Right / Left : Navigate between tabs
  • Ctrl + Right / Left : Navigate code in words
  • Ctrl + Alt + Right / Left : Navigate back / forward(like in Web Browsers)
  • Ctrl + B : Go to declaration / Go to usages
  • F2 : Go to next syntax error
  • Ctrl + F4 : Close tab

Code Shortcuts

  • Alt + Enter : Show available intention actions(useful for fixing compile errors)
  • Ctrl + / : Comment / uncomment line of code
  • Ctrl + Shift + / : Comment / uncomment block of code
  • Ctrl + Shift + Up / Down : Move current line of code up or down
  • Ctrl + D : Duplicate current line of code
  • Ctrl + Y : Remove current line of code
  • Ctrl + F : Find in current file
  • Ctrl + R : Find and replace in current file
  • Ctrl + Shift + F : Find in project files
  • Ctrl + + / - : Expand or collapse code block in editor
  • Shift + F6 : Refactor name
  • Ctrl + Alt + L : Reformat code

Multi-use Shortcuts(Indispensible!)

  • Ctrl + Shift + A : Action Navigator
  • Shift + Shift : Search Everywhere

Build Shortcuts

  • Shift + F10 : Run selected build
  • Ctrl + F2 : Stop build

Tips / Custom Shortcuts

These are the custom shortcuts I found helpful to assign.

  • Ctrl + ; : Clone Caret Below(Useful for multiline editing)
  • Ctrl + Shift + G : Run Gradle Task(Useful for choosing which Gradle build to run, for Android Studio)
  • Ctrl + Shift + F5 : Sync Gradle(Useful for applying change to Gradle files)
@bachhuberdesign

This comment has been minimized.

Copy link

commented Feb 26, 2017

Alt + Shift + Left Click to add an additional cursor is another great shortcut that I find myself using constantly.

@bachhuberdesign

This comment has been minimized.

Copy link

commented Feb 26, 2017

Ctrl + Alt + Z: Revert Changes can also be a time-saver when you're refactoring and a class gets changed unintentionally (usually due to comments/Javadoc matching) or you royally screw up your code.

@mladenrakonjac

This comment has been minimized.

Copy link

commented Feb 26, 2017

Cmd + U -> go to super method if it is overrided

@mgjo5899

This comment has been minimized.

Copy link

commented Feb 28, 2017

Yo I think this is pretty good stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.