Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ravidsrk/4bd99b915140cd4054b5e99c6bc41137 to your computer and use it in GitHub Desktop.
Save ravidsrk/4bd99b915140cd4054b5e99c6bc41137 to your computer and use it in GitHub Desktop.

#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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment