This is a list of Jetbrains IDE shortcuts I use everyday.
Comments welcome! Tell me your favorites.
- Alt + 1 : Project
- Alt + Number : Corresponding window
- Esc : 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
- 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
- Ctrl + Shift + A : Action Navigator
- Shift + Shift : Search Everywhere
- Shift + F10 : Run selected build
- Ctrl + F2 : Stop build
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)
Alt + Shift + Left Click to add an additional cursor is another great shortcut that I find myself using constantly.