⌨️ JetBrains IDEs Keyboard Shortcuts
Default Keymaps
These shortcuts correspond to the default Windows / Linux keymap layout. For macOS users, generally substitute Ctrl with Cmd (⌘), Alt with Option (⌥), and Shift remains Shift (⇧).
⚙️ General & Essential Actions
| Shortcut | Action |
|---|---|
Double Shift |
Search Everywhere (Find files, actions, classes, settings) |
Ctrl + Shift + A |
Find Action (Run any IDE command by name) |
Ctrl + Alt + S |
Open Settings / Preferences |
Ctrl + Shift + F12 |
Toggle maximizing the active editor tab |
Alt + 1 |
Toggle Project tool window visibility |
| `Ctrl + `` | Switch Quick Map / Scheme (Theme, Keymap, etc.) |
The Double Shift Magic
If you can only remember one shortcut in JetBrains, make it Double Shift. It triggers Search Everywhere, which indexes files, symbols, menu items, actions, and configurations concurrently in a single layout.
📁 File & Tab Management
| Shortcut | Action |
|---|---|
Ctrl + Shift + N |
Go to File (Quick open by name) |
Ctrl + E |
Show Recent Files popup |
Ctrl + Shift + E |
Show Recently Changed Files popup |
Ctrl + S |
Save all (JetBrains autosaves, but forces file sync) |
Ctrl + F4 |
Close active editor tab |
Alt + Right / Left |
Switch to next / previous editor tab |
📝 Editing & Code Generation
| Shortcut | Action |
|---|---|
Ctrl + Space |
Basic code completion |
Ctrl + Shift + Space |
Smart code completion (filters by expected type) |
Alt + Enter |
Show Intentions / Quick Fixes (Show context actions) |
Ctrl + Alt + L |
Reformat Code (Aligns to code style settings) |
Ctrl + O / Ctrl + I |
Override methods / Implement methods |
Alt + Insert |
Generate code (Constructors, Getters/Setters, Boilerplate) |
Ctrl + Shift + Enter |
Complete Current Statement (adds semicolons, brackets, etc.) |
Ctrl + / |
Toggle line comment |
Ctrl + Shift + / |
Toggle block comment |
✂️ Selection & Text Manipulation
| Shortcut | Action |
|---|---|
Ctrl + W |
Extend selection (Selects word, then expression, then block) |
Ctrl + Shift + W |
Shrink current selection |
Ctrl + D |
Duplicate current line or selection |
Ctrl + Y |
Delete current line |
Ctrl + Shift + J |
Join lines together |
Shift + Enter |
Start new line below current cursor position |
Ctrl + Alt + Shift + Insert |
Create scratch file (temporary code playground) |
👥 Multiple Cursors & Column Selection
| Shortcut | Action |
|---|---|
Alt + Shift + Click |
Add/Remove multiple cursors |
Alt + J |
Select next occurrence of current word |
Alt + Shift + J |
Unselect last selected occurrence |
Ctrl + Alt + Shift + J |
Select all occurrences of current word in file |
Shift + Alt + Insert |
Toggle Column Selection Mode (Box selection) |
🔍 Search & Replace
| Shortcut | Action |
|---|---|
Ctrl + F |
Find text within current file |
F3 / Shift + F3 |
Find next / previous match in file |
Ctrl + R |
Replace text within current file |
Ctrl + Shift + F |
Find in Path (Global search across all files) |
Ctrl + Shift + R |
Replace in Path (Global replace across all files) |
🛠️ Refactoring (The JetBrains Superpower)
Safe Refactoring
JetBrains IDEs analyze deep AST dependencies. Using Shift + F6 guarantees that renaming elements changes references everywhere in your project without introducing breaking modifications.
| Shortcut | Action |
|---|---|
Shift + F6 |
Rename file, class, method, or variable safely |
Ctrl + Alt + M |
Extract selected code into a new Method |
Ctrl + Alt + V |
Extract expression into a new Local Variable |
Ctrl + Alt + F |
Extract expression into a new Field |
Ctrl + Alt + C |
Extract expression into a new Constant |
Ctrl + Alt + P |
Extract expression into a new Parameter |
Ctrl + Alt + N |
Inline variable, method, or constant |
🚀 Navigation & Code Intelligence
| Shortcut | Action |
|---|---|
Ctrl + B or Ctrl + Click |
Go to Definition / Declaration |
Ctrl + Alt + B |
Go to Implementation(s) |
Ctrl + U |
Go to Super-method / Super-class |
Alt + F7 |
Find Usages (Shows where a symbol is used project-wide) |
Ctrl + F12 |
File Structure popup (Lists all methods/fields in current file) |
Ctrl + Alt + Left / Right |
Navigate Back / Forward in history |
Ctrl + G |
Go to specific line / column |
F2 / Shift + F2 |
Jump to next / previous highlighted syntax error |
🐞 Running & Debugging
| Shortcut | Action |
|---|---|
Shift + F10 |
Run current configuration |
Shift + F9 |
Debug current configuration |
Ctrl + F8 |
Toggle Breakpoint on current line |
Ctrl + Shift + F8 |
View / Edit all breakpoints |
F8 |
Step Over (Execute next line without entering methods) |
F7 |
Step Into (Enter inside the method on current line) |
Shift + F8 |
Step Out (Finish current method execution and return) |
Alt + F9 |
Run to Cursor |
Alt + F8 |
Evaluate Expression (Evaluate variables while debugging) |






