JetBrains IDEs Cheat Sheet
The same shortcuts work in every JetBrains IDE (default keymaps). If you can remember only one: Double Shift (Search Everywhere) and Alt + Enter (fix anything).
On this page
Find Anything #
| Action | Windows / Linux | macOS |
|---|---|---|
| Search Everywhere | Shift Shift | ⇧ ⇧ |
| Find Action (any command/setting) | Ctrl + Shift + A | ⌘ ⇧ A |
| Go to class | Ctrl + N | ⌘ O |
| Go to file | Ctrl + Shift + N | ⌘ ⇧ O |
| Go to symbol | Ctrl + Alt + Shift + N | ⌘ ⌥ O |
| Recent files | Ctrl + E | ⌘ E |
| Find in files | Ctrl + Shift + F | ⌘ ⇧ F |
| Replace in files | Ctrl + Shift + R | ⌘ ⇧ R |
| Go to line | Ctrl + G | ⌘ L |
Navigate Code #
| Action | Windows / Linux | macOS |
|---|---|---|
| Go to declaration | Ctrl + B or Ctrl + Click | ⌘ B or ⌘ + Click |
| Go to implementation | Ctrl + Alt + B | ⌘ ⌥ B |
| Find usages | Alt + F7 | ⌥ F7 |
| File structure | Ctrl + F12 | ⌘ F12 |
| Back / forward | Ctrl + Alt + ←/→ | ⌘ [ / ⌘ ] |
| Next error | F2 | F2 |
| Quick documentation | Ctrl + Q | F1 |
| Parameter info | Ctrl + P | ⌘ P |
Edit #
| Action | Windows / Linux | macOS |
|---|---|---|
| Show fixes / intentions | Alt + Enter | ⌥ Enter |
| Code completion | Ctrl + Space | ⌃ Space |
| Complete statement | Ctrl + Shift + Enter | ⌘ ⇧ Enter |
| Duplicate line | Ctrl + D | ⌘ D |
| Delete line | Ctrl + Y | ⌘ Delete |
| Move line up / down | Alt + Shift + ↑/↓ | ⌥ ⇧ ↑/↓ |
| Comment line | Ctrl + / | ⌘ / |
| Reformat code | Ctrl + Alt + L | ⌘ ⌥ L |
| Optimize imports | Ctrl + Alt + O | ⌃ ⌥ O |
| Extend / shrink selection | Ctrl + W / Ctrl + Shift + W | ⌥ ↑ / ⌥ ↓ |
| Add next occurrence | Alt + J | ⌃ G |
| Select all occurrences | Ctrl + Alt + Shift + J | ⌃ ⌘ G |
| Add caret | Alt + Shift + Click | ⌥ ⇧ + Click |
| Generate (getters, constructor…) | Alt + Insert | ⌘ N |
| Surround with (if, try…) | Ctrl + Alt + T | ⌘ ⌥ T |
| Live templates | Ctrl + J | ⌘ J |
Refactor #
| Action | Windows / Linux | macOS |
|---|---|---|
| Refactor This (menu) | Ctrl + Alt + Shift + T | ⌃ T |
| Rename | Shift + F6 | ⇧ F6 |
| Extract method | Ctrl + Alt + M | ⌘ ⌥ M |
| Extract variable | Ctrl + Alt + V | ⌘ ⌥ V |
| Extract constant | Ctrl + Alt + C | ⌘ ⌥ C |
| Inline | Ctrl + Alt + N | ⌘ ⌥ N |
| Change signature | Ctrl + F6 | ⌘ F6 |
| Move | F6 | F6 |
Run & Debug #
| Action | Windows / Linux | macOS |
|---|---|---|
| Run | Shift + F10 | ⌃ R |
| Debug | Shift + F9 | ⌃ D |
| Choose config and run | Alt + Shift + F10 | ⌃ ⌥ R |
| Stop | Ctrl + F2 | ⌘ F2 |
| Build project | Ctrl + F9 | ⌘ F9 |
| Toggle breakpoint | Ctrl + F8 | ⌘ F8 |
| Step over / into / out | F8 / F7 / Shift + F8 | F8 / F7 / ⇧ F8 |
| Resume | F9 | ⌘ ⌥ R |
| Evaluate expression | Alt + F8 | ⌥ F8 |
Tool Windows & VCS #
| Action | Windows / Linux | macOS |
|---|---|---|
| Project view | Alt + 1 | ⌘ 1 |
| Terminal | Alt + F12 | ⌥ F12 |
| Git / VCS popup | Alt + ` | ⌃ V |
| Commit | Ctrl + K | ⌘ K |
| Push | Ctrl + Shift + K | ⌘ ⇧ K |
| Update project (pull) | Ctrl + T | ⌘ T |
| Hide all tool windows | Ctrl + Shift + F12 | ⌘ ⇧ F12 |
| Back to the editor | Esc | Esc |
| Settings | Ctrl + Alt + S | ⌘ , |
Tips #
- Forgot a shortcut? Find Action → type the name. The shortcut is shown next to it.
- Help → Keyboard Shortcuts PDF opens the official reference card for your OS.
- Local History (right-click a file → Local History) can recover changes that were never committed.
Nothing on this sheet matches “”.