Skip to content

Instantly share code, notes, and snippets.

@minsik-ai
Last active February 18, 2021 04:50
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save minsik-ai/dffe857d26f4c66e66e569cd813d6883 to your computer and use it in GitHub Desktop.
Save minsik-ai/dffe857d26f4c66e66e569cd813d6883 to your computer and use it in GitHub Desktop.
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
Copy link

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

@bachhuberdesign
Copy link

bachhuberdesign 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
Copy link

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

@jocho-here
Copy link

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