IntelliJ Shortcuts — Cheat Sheet

Tags: intellij, ide, shortcuts, productivity, keymap, refactoring

Level: intermediate

TL;DR: Essential IntelliJ IDEA keybindings for rapid code navigation, refactoring, and debugging without touching the mouse.

Key concepts

Double Shift opens Search Everywhere across classes, files, symbols, and actions.

Ctrl+Shift+A finds and executes any IntelliJ action or setting by name.

Alt+Enter opens intention actions, quick-fixes, and context-dependent suggestions.

Ctrl+B navigates to declarations; Ctrl+Alt+B navigates to interface implementations.

Alt+F7 finds all usages of the selected symbol across the workspace.

Shift+F6 safely renames symbols and updates all project references.

Ctrl+Alt+L reformats the current file or selection according to code style.

Ctrl+Alt+V extracts expressions into variables; Ctrl+Alt+M extracts methods.

Ctrl+E displays recent files; Ctrl+Shift+E displays recently edited locations.

Ctrl+Shift+V opens the clipboard history dialog to choose past copies.

Typical questions and ready answers

Q: How do you navigate efficiently through a large codebase in IntelliJ without using the mouse?R: I use Double Shift for universal search, Ctrl+N for classes, and Ctrl+E for recent files. For code tracing, I use Ctrl+B to inspect definitions and Ctrl+Alt+B for implementations.

Q: What is your workflow for refactoring code safely using IntelliJ shortcuts?R: I inspect warnings with Alt+Enter, execute renames with Shift+F6, and extract reusable blocks into variables or methods using Ctrl+Alt+V and Ctrl+Alt+M.

Pitfalls and common mistakes

Relying on raw text search instead of semantic navigation yields irrelevant results across comments and strings.

Customizing keymaps excessively across machines creates friction during pair programming and remote debugging sessions.

Modifying symbol names by manual text editing rather than Shift+F6 leaves broken references across the project.

Overlooking macOS key bindings when switching platforms, where Command replaces Control and Option replaces Alt.

Snippets and commandsPlaintext

```Navigation:

Double Shift Search Everywhere

Ctrl + Shift + A Find Action

Ctrl + N Go to Class

Ctrl + Shift + N Go to File

Ctrl + E Recent Files

Ctrl + B Go to Declaration

Ctrl + Alt + B Go to Implementation

Alt + F7 Find Usages

Editing & Refactoring:

Alt + Enter Show Intention Actions / Quick-fix

Shift + F6 Rename Symbol

Ctrl + Alt + L Reformat Code

Ctrl + Alt + V Extract Variable

Ctrl + Alt + M Extract Method

Ctrl + D Duplicate Line

Ctrl + Y Delete Line

Alt + J Select Next Occurrence

Debugging:

Shift + F9 Debug Configuration

Ctrl + F8 Toggle Breakpoint

F8 Step Over

F7 Step Into

Shift + F8 Step Out

Alt + F8 Evaluate Expression

```

To review

[x] Universal navigation via Double Shift and Ctrl+Shift+A

[x] Core refactorings via Shift+F6, Ctrl+Alt+V, and Ctrl+Alt+M

[ ] Multi-caret editing workflows with Alt+J

[ ] Debugger evaluation workflows with Alt+F8 and Smart Step Into

References

JetBrains Official IntelliJ IDEA Keyboard Shortcuts Reference Card

IntelliJ IDEA Documentation: Keyboard Shortcuts and Mouse Reference

Jarvis Interviews
Jarvis