IntelliJ IDEA Keyboard Shortcuts — Complete Cheatsheet
IntelliJ IDEA is a powerful IDE that can significantly boost your coding efficiency. Mastering its keyboard shortcuts is key to navigating, editing, and debugging code at lightning speed, allowing you to stay in the flow and focus on problem-solving.
Upgrade Your Workflow: MX Master 3S Mouse
Pair your shortcuts with the ultimate developer mouse. Silent clicks, 8K DPI tracking, and hyper-fast scrolling.
Shortcuts
| Action | Windows | Mac | Category |
|---|---|---|---|
| Search Everywhere (files, actions, symbols) | Double Shift | Double Shift | Navigation |
| Find Action (search for commands) | Ctrl+Shift+A | Cmd+Shift+A | Navigation |
| Go to Class | Ctrl+N | Cmd+O | Navigation |
| Go to File | Ctrl+Shift+N | Cmd+Shift+O | Navigation |
| Go to Symbol | Ctrl+Alt+Shift+N | Cmd+Alt+O | Navigation |
| Recent Files | Ctrl+E | Cmd+E | Navigation |
| Navigate Back | Ctrl+Alt+Left | Cmd+Alt+Left | Navigation |
| Navigate Forward | Ctrl+Alt+Right | Cmd+Alt+Right | Navigation |
| Context Info (show definition/type) | Ctrl+Shift+P | Shift+Cmd+P | Editing |
| Show Intention Actions (lightbulb) | Alt+Enter | Alt+Enter | Editing |
| Complete Current Statement | Ctrl+Shift+Enter | Cmd+Shift+Enter | Editing |
| Duplicate Line or Selection | Ctrl+D | Cmd+D | Editing |
| Delete Line at Caret | Ctrl+Y | Cmd+Backspace | Editing |
| Move Line Up/Down | Ctrl+Shift+Up/Down | Cmd+Shift+Up/Down | Editing |
| Reformat Code | Ctrl+Alt+L | Cmd+Alt+L | Code Refactoring |
| Rename | Shift+F6 | Shift+F6 | Code Refactoring |
| Extract Method | Ctrl+Alt+M | Cmd+Alt+M | Code Refactoring |
| Run/Debug Current Configuration | Shift+F10 / Shift+F9 | Ctrl+R / Ctrl+D | Run/Debug |
| Toggle Breakpoint | Ctrl+F8 | Cmd+F8 | Run/Debug |
| Step Over | F8 | F8 | Run/Debug |
| Step Into | F7 | F7 | Run/Debug |
| Commit Project | Ctrl+K | Cmd+K | Version Control |
| Update Project | Ctrl+T | Cmd+T | Version Control |
| Show VCS History | Alt+Shift+H | Alt+Shift+H | Version Control |
Tips
- Practice regularly: The best way to internalize shortcuts is to use them consistently. Try to avoid the mouse for common actions.
- Learn context-specific shortcuts: Many shortcuts change behavior or offer additional options when pressed multiple times or in specific contexts (e.g., 'Shift+Shift' for 'Search Everywhere').
- Use 'Find Action' (Ctrl+Shift+A / Cmd+Shift+A) to discover new shortcuts or execute commands without memorizing them. It's your shortcut to finding shortcuts!
- Customize your keymap: If a default shortcut feels unnatural, don't hesitate to remap it to something more intuitive for your workflow.
- Focus on one category at a time: Instead of trying to learn everything at once, pick a category like 'Navigation' or 'Editing' and master those shortcuts before moving on.
Frequently Asked Questions
How do I see all IntelliJ IDEA shortcuts?
You can view and print a comprehensive list of all shortcuts by going to 'Help' > 'Keyboard Shortcuts PDF' (or 'Keymap Reference' on older versions). Alternatively, in 'Settings/Preferences' > 'Keymap', you can browse and search for specific actions.
Can I customise IntelliJ IDEA shortcuts?
Absolutely! Go to 'File' > 'Settings' (Windows/Linux) or 'IntelliJ IDEA' > 'Preferences' (macOS), then navigate to 'Keymap'. Here, you can search for any action and assign your preferred shortcut combination. You can also choose from predefined keymaps like 'Eclipse' or 'VS Code' if you're transitioning from another IDE.