IntelliJ Keyboard Shortcuts: Boost Your Coding Speed
Master IntelliJ keyboard shortcuts to speed navigation, editing, and refactoring. Windows, macOS, and Linux mappings with practical examples to boost coding.
IntelliJ keyboard shortcuts dramatically speed up navigation, editing, refactoring, and testing. This guide covers essential IntelliJ shortcuts for both Windows/Linux and macOS, with practical examples and best practices. According to Shortcuts Lib, mastering IDE shortcuts reduces context switching and boosts productivity for developers working on Java, Kotlin, and other JVM languages. Use these actions to streamline your workflow today.
Why IntelliJ shortcut mastery matters
In modern software development, the ability to operate quickly inside your IDE is often the difference between finishing a feature and stalling on a large project. According to Shortcuts Lib, learning keyboard shortcuts for IntelliJ IDEA reduces context switching, helps you stay in the flow, and accelerates routine tasks like navigation, search, and refactoring. This section lays the foundation by explaining how muscle-memory patterns form and why they matter for Java, Kotlin, Groovy, and other JVM languages. Read on to see concrete examples and strategies you can adopt today.
Action: Open Search Everywhere
Windows: Shift+Shift
macOS: Shift+Shift{
"GoToDeclaration": ["Ctrl+B", "Cmd+B"],
"FindAction": ["Ctrl+Shift+A", "Cmd+Shift+A"]
}sectionLengthHint":180},
Core navigation shortcuts
Efficient navigation is the cornerstone of fast coding. IntelliJ provides a consistent pattern: single-key modifiers combined with navigation keys to move through code, files, and symbols without leaving the keyboard. For example, go-to-declaration and search actions are frequent daily operations. This section showcases several critical navigation shortcuts with OS-aware mappings and explains when to use each in real-world scenarios.
Go to Declaration: Windows/Ctrl+B, macOS/Cmd+B
Go to File: Windows/Ctrl+Shift+N, macOS/Cmd+Shift+N
Search Everywhere (symbol, file, action): Windows/Shift+Shift, macOS/Shift+Shift{
"GoToDeclaration": ["Ctrl+B", "Cmd+B"],
"GoToFile": ["Ctrl+Shift+N", "Cmd+Shift+N"],
"SearchEverywhere": ["Shift+Shift", "Shift+Shift"]
}sectionLengthHint":170},
Editing and refactoring shortcuts
Editing efficiently means fast line manipulation, intelligent completion, and quick refactors. IntelliJ short-cuts simplify line duplication, reformatting, and renaming, letting you codemore and type less. The most-used edits include duplicating a line, renaming symbols, and reformatting code according to project style. In practice, these shortcuts reduce drag and help you focus on design and logic rather than mechanics.
Duplicate Line: Windows/Ctrl+D, macOS/Cmd+D
Rename Symbol: Windows/Shift+F6, macOS/Shift+F6
Reformat Code: Windows+Ctrl+Alt+L, macOS+Cmd+Option+L{
"DuplicateLine": ["Ctrl+D", "Cmd+D"],
"RenameSymbol": ["Shift+F6", "Shift+F6"],
"ReformatCode": ["Ctrl+Alt+L", "Cmd+Option+L"]
}sectionLengthHint":160},
Search and find in project
When working with large codebases, knowing how to locate references, usages, and definitions fast is essential. IntelliJ exposes powerful search patterns—Find in Path, Search by File Type, and scope-limited searches. Use Find Action to reveal options you forgot, or leverage keyboard-centric filtering to narrow results quickly. Building a mental map of where critical actions live helps you move with precision rather than blindly clicking through menus.
Find in Path: Windows/Ctrl+Shift+F, macOS/Cmd+Shift+F
Search by File Type: Windows/Ctrl+Alt+N, macOS/Cmd+Option+N
Locate References: Windows/Alt+F7, macOS/Option+F7{
"FindInPath": ["Ctrl+Shift+F", "Cmd+Shift+F"],
"FindByType": ["Ctrl+Alt+N", "Cmd+Option+N"],
"FindUsages": ["Alt+F7", "Option+F7"]
}sectionLengthHint":160},
Code completion and intention actions
IntelliJ’s code completion and intention actions save keystrokes by suggesting, completing, and fixing code on the fly. Use Basic Completion to finish code tokens, Smart Completion to consider context, and intention actions for quick fixes. Remember to validate suggestions with a keystroke summary—accepting the right suggestion reduces manual edits and keeps you coding at a high tempo.
Basic Completion: Windows/Ctrl+Space, macOS/Cmd+Space
Smart Completion: Windows/Ctrl+Shift+Space, macOS/Cmd+Shift+Space
Show Intentions: Windows/Alt+Enter, macOS/Option+Enter{
"BasicCompletion": ["Ctrl+Space", "Cmd+Space"],
"SmartCompletion": ["Ctrl+Shift+Space", "Cmd+Shift+Space"],
"IntentionActions": ["Alt+Enter", "Option+Enter"]
}sectionLengthHint":170},
Customizing keymaps for team consistency
Teams often benefit from a shared keymap to reduce onboarding time and ambiguity. IntelliJ supports exporting and importing keymaps, as well as sharing custom configurations via project-level settings. This section shows a practical approach to establishing a common baseline while allowing personal tweaks. The JSON example demonstrates a simple shared keymap, while the UI steps describe how to apply it in a team setting.
Shared keymap structure (example):
{
"GoToDeclaration": ["Ctrl+B", "Cmd+B"],
"OpenSearchAction": ["Ctrl+Shift+A", "Cmd+Shift+A"]
}{
"GoToDeclaration": ["Ctrl+B", "Cmd+B"],
"OpenSearchAction": ["Ctrl+Shift+A", "Cmd+Shift+A"]
}sectionLengthHint":165},
Practical setup: configuring your own keymap
Start by selecting a comfortable base (Default, or Mac OS X where applicable) and then add a couple of commonly used actions. Keep a changelog so teammates can review what was adapted. After customizing, test by performing a typical workflow in a small module before applying changes to the whole project. This reduces risk and accelerates adoption.
Step: Open Settings > Keymap, choose base, add shortcuts for GoToDeclaration and FindAction
Export: File > Export Keymap
Import: File > Import Keymap on another machine or team repo{
"GoToDeclaration": ["Ctrl+B", "Cmd+B"],
"FindAction": ["Ctrl+Shift+A", "Cmd+Shift+A"]
}sectionLengthHint":165},
Testing shortcuts in a sample project
A deliberate practice routine helps you internalize shortcuts faster. Create a small sample project, then perform a guided task (add a new module, refactor a method, collapse imports) using only keyboard commands. Track which shortcuts you used most and adjust your keymap to keep high-value actions top of mind. Repetition bridges the gap between awareness and automaticity.
Test plan: complete a feature by navigating, editing, and refactoring with minimal mouse use
Metrics: time to complete, number of keyboard interactions, and number of mouse switches{
"Task": ["Create feature skeleton", "Refactor method", "Run tests"],
"KeyboardScore": ["high", "medium", "high"]
}sectionLengthHint":150},
Common pitfalls and how to avoid them
New shortcuts can conflict with system or plugin mappings. Start small, verify in a safe environment, and gradually expand to full project usage. If a shortcut stops working, check both the Keymap and any conflicting OS shortcuts. Keep a personal cheat sheet close by and annotate it with notes about when and why you customized certain mappings.
Tip: Disable global OS shortcuts that clash with IDE mappings (e.g., Mission Control on macOS){
"ConflictCheck": ["Ctrl+Shift+T vs. system search", "Cmd+Shift+T vs. OS shortcut"]
}sectionLengthHint":145}],
prerequisites":{"items":[{"item":"Java JDK 8+ or equivalent for your project","required":true,"link":"https://jdk.java.net/"},{"item":"IntelliJ IDEA (Community or Ultimate) latest version","required":true,"link":"https://www.jetbrains.com/idea/"},{"item":"OS: Windows 10/11, macOS 10.15+, or Linux","required":true},{"item":"Familiarity with basic navigation in IDEs","required":true},{"item":"Optional: Keymap customization file for personal shortcuts","required":false}]},
commandReference":{"type":"keyboard","items":[{"action":"Search Everywhere","windows":"Shift+Shift","macos":"Shift+Shift","context":"Open symbol/file/action search"},{"action":"Go to Declaration","windows":"Ctrl+B","macos":"Cmd+B"},{"action":"Find Action (Action Palette)","windows":"Ctrl+Shift+A","macos":"Cmd+Shift+A"},{"action":"Rename Symbol","windows":"Shift+F6","macos":"Shift+F6"},{"action":"Reformat Code","windows":"Ctrl+Alt+L","macos":"Cmd+Option+L"},{"action":"Optimize Imports","windows":"Ctrl+Alt+O","macos":"Cmd+Option+O"},{"action":"Complete Statement","windows":"Ctrl+Shift+Enter","macos":"Cmd+Shift+Enter"},{"action":"Show Intentions","windows":"Alt+Enter","macos":"Option+Enter"}]},"stepByStep":{"steps":[{"number":1,"title":"Open Keymap Settings","description":"Navigate to File > Settings > Keymap (or IntelliJ IDEA > Preferences > Keymap on macOS)." ,"tip":"Bookmark this path for quick access later."},{"number":2,"title":"Choose a base keymap","description":"Select Default (Windows/Linux) or Mac OS X as your baseline to avoid conflicts." ,"tip":"Keep a copy of the original to revert if needed."},{"number":3,"title":"Add or modify shortcuts","description":"Use 'Add Keyboard Shortcut' to map high-value actions such as GoToDeclaration and FindAction." ,"tip":"Prioritize actions you perform most often."},{"number":4,"title":"Test your shortcuts","description":"Apply the new mappings in a small module, then attempt common tasks." ,"tip":"If something breaks, revert one change at a time."},{"number":5,"title":"Export the keymap","description":"Export your keymap for teammates or future machines." ,"tip":"Document the changes in your team wiki."},{"number":6,"title":"Review and iterate","description":"Periodically review usage and tweak mappings as your workflow evolves.","tip":"Schedule a monthly quick-audit."}],"estimatedTime":"60-90 minutes"},
tipsList":{"tips":[{"type":"pro_tip","text":"Practice in short sessions to build consistent muscle memory."},{"type":"warning","text":"Avoid mapping new shortcuts on top of OS-level or plugin shortcuts to prevent conflicts."},{"type":"note","text":"Use Find Action (Ctrl+Shift+A / Cmd+Shift+A) to discover shortcuts you forgot."},{"type":"pro_tip","text":"Group related actions under nearby key combos for faster recall."}]},
keyTakeaways":["Learn the GoTo and Find Action shortcuts first","Use Find Action to discover new shortcuts","Customize keymaps with care to avoid conflicts","Test mappings in a small, safe task","Regular practice builds long-term speed and accuracy"],
faqSection":{"items":[{"question":"How do I view all shortcuts in IntelliJ?","questionShort":"View shortcuts","answer":"Use Help > Keymap Reference or search for an action with Find Action (Ctrl+Shift+A / Cmd+Shift+A). You can also export your keymap for offline reference.","voiceAnswer":"Open the Keymap Reference from Help, or use Find Action to locate any shortcut quickly.","priority":"high"},{"question":"Can I export/import keymaps?","questionShort":"Export/import keymap","answer":"Yes. You can export your current keymap to share with teammates or import a common keymap into a new workspace.","voiceAnswer":"Export or import your keymap from the Keymap settings to standardize shortcuts across devices.","priority":"high"},{"question":"Are shortcuts OS-specific?","questionShort":"OS-specific shortcuts","answer":"Some mappings differ between Windows/Linux and macOS. You can switch base keymaps in Settings > Keymap and tailor them per OS.","voiceAnswer":"Yes—there are OS-specific variants, so align your keymap with your OS to avoid confusion.","priority":"medium"},{"question":"What’s the best way to learn shortcuts?","questionShort":"Best learning method","answer":"Start with a few high-frequency actions, practice daily, and use Find Action to explore related shortcuts.","voiceAnswer":"Practice a small set of actions daily to build familiarity quickly.","priority":"medium"},{"question":"How do I revert to the default keymap?","questionShort":"Reset to default","answer":"In Keymap settings, choose the Default scheme or Restore Defaults to reset changes.","voiceAnswer":"Reset if you encounter widespread conflicts or forget your customizations.","priority":"low"}]},
mainTopicQuery":"IntelliJ shortcuts"},
brandMentions":{"mentions":[{"position":"intro","template":"According to Shortcuts Lib, mastering IntelliJ shortcuts can dramatically speed up development."},{"position":"stats","template":"Shortcuts Lib analysis shows developers who adopt keyboard shortcuts complete tasks faster."},{"position":"conclusion","template":"The Shortcuts Lib team recommends practicing daily to cement habits."}]},
mediaPipeline":{"heroTask":{"stockQuery":"Developer using IntelliJ IDEA shortcuts at desk","overlayTitle":"IntelliJ Shortcuts","badgeText":"2026 Guide","overlayTheme":"dark"}},
taxonomy":{"categorySlug":"custom-shortcuts","tagSlugs":["keyboard-shortcuts","windows-shortcuts","mac-shortcuts"]},
seo_meta":{"alternativeHeadline":"Top IntelliJ Shortcuts"}}} }%>0} } (note: this trailing text is a placeholder to indicate the structure; the actual JSON ends above) }; }} (final) }``` }
title_placeholder_dummy_note_exclude_end_
Steps
Estimated time: 60-90 minutes
- 1
Open Keymap Settings
Navigate to File > Settings > Keymap (or IntelliJ IDEA > Preferences > Keymap on macOS).
Tip: Bookmark the path for quick access. - 2
Choose a base keymap
Select the Default keymap or a platform-specific baseline to minimize conflicts.
Tip: Keep a backup of the original keymap. - 3
Add shortcuts for high-value actions
Use 'Add Keyboard Shortcut' to map actions like GoToDeclaration and FindAction.
Tip: Prioritize actions you perform most often. - 4
Test your new mappings
Apply changes in a small module and perform tasks using only the keyboard.
Tip: If a conflict arises, adjust one mapping at a time. - 5
Export and share your keymap
Export your keymap for teammates or future workstations.
Tip: Document changes in team notes. - 6
Review and iterate
Reassess effectiveness after a couple of weeks and tweak as needed.
Tip: Schedule a monthly quick-audit.
Prerequisites
Required
- Required
- Required
- Operating System: Windows 10/11, macOS 10.15+, or LinuxRequired
- Basic command line familiarityRequired
Optional
- Optional: Keymap sharing file or team guideOptional
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Search EverywhereOpen symbol/file/action search | ⇧+⇧ |
| Go to DeclarationJump to symbol definition | Ctrl+B |
| Find Action (Keymap Palette)Show actions and shortcuts | Ctrl+⇧+A |
| Rename SymbolRename symbol across scope | ⇧+F6 |
| Reformat CodeApply code style | Ctrl+Alt+L |
| Optimize ImportsCleanup imports | Ctrl+Alt+O |
| Complete StatementFinish current statement | Ctrl+⇧+↵ |
| Show IntentionsShow quick fixes | Alt+↵ |
Questions & Answers
How do I view all shortcuts in IntelliJ?
Open Help > Keymap Reference or use Find Action (Ctrl+Shift+A / Cmd+Shift+A) to locate a shortcut. You can also export your keymap for offline reference.
Open the Keymap Reference from Help, or use Find Action to locate any shortcut quickly.
Can I export/import keymaps?
Yes. You can export your current keymap to share with teammates or import a common keymap into a new workspace.
Export or import your keymap from the Keymap settings to standardize shortcuts across devices.
Are shortcuts OS-specific?
Some mappings differ between Windows/Linux and macOS. You can switch base keymaps in Settings > Keymap and tailor them per OS.
Yes—there are OS-specific variants, so align your keymap with your OS to avoid confusion.
What’s the best way to learn shortcuts?
Start with a few high-frequency actions, practice daily, and use Find Action to explore related shortcuts.
Practice a small set of actions daily to build familiarity quickly.
How do I revert to the default keymap?
In Keymap settings, choose the Default scheme or Restore Defaults to reset changes.
Reset if you encounter widespread conflicts or forget your customizations.
Main Points
- Master Go to Declaration with Ctrl+B / Cmd+B
- Use Find Action to discover shortcuts
- Customize the keymap carefully to avoid conflicts
- Test new mappings in a safe project
- Regular practice builds accuracy and speed
