IntelliJ IDEA

IntelliJ IDEA Keyboard Shortcuts

Complete IntelliJ IDEA keyboard shortcuts. Code generation, refactoring, debugging, and navigation.

31
Shortcuts
5
Categories
Free
100% Free

IntelliJ IDEA's keymap is the template for every other JetBrains IDE — PyCharm, WebStorm, GoLand, Rider and CLion share it almost exactly — so this page doubles as the reference for that whole family. The table shows the default Windows/Linux keymap. On macOS most bindings substitute Cmd for Ctrl, but several are simply different, and the IDE's own keymap reference is the place to confirm them.

Navigation 7

Ctrl+N
Go to Class
Navigate to class
Ctrl+Shift+N
Go to File
Navigate to file
Ctrl+Alt+Shift+N
Go to Symbol
Navigate to symbol
Ctrl+E
Recent Files
Open recent files
Ctrl+Shift+E
Recent Locations
Show recent edit locations
Ctrl+B
Go to Declaration
Jump to declaration
Ctrl+Alt+Left/Right
Navigate Back/Forward
Navigate back/forward in history

Editing 8

Ctrl+Space
Code Completion
Basic code completion
Ctrl+Shift+Space
Smart Completion
Smart type-matching completion
Ctrl+Alt+L
Reformat Code
Reformat code
Ctrl+D
Duplicate Line
Duplicate current line
Ctrl+Y
Delete Line
Delete current line
Ctrl+/
Comment Line
Comment/uncomment line
Ctrl+Shift+/
Block Comment
Comment/uncomment block
Ctrl+W
Extend Selection
Expand selection

Refactoring 5

Shift+F6
Rename
Rename symbol
Ctrl+Alt+M
Extract Method
Extract method
Ctrl+Alt+V
Extract Variable
Extract variable
Ctrl+Alt+C
Extract Constant
Extract constant
Ctrl+Alt+F
Extract Field
Extract field

Run & Debug 7

Shift+F10
Run
Run program
Shift+F9
Debug
Start debugging
Ctrl+F2
Stop
Stop running program
F8
Step Over
Step over in debugger
F7
Step Into
Step into in debugger
Shift+F8
Step Out
Step out in debugger
F9
Resume
Resume program

Tool Windows 4

Alt+1
Project
Focus Project window
Alt+7
Structure
Focus Structure window
Alt+9
Git
Focus Version Control window
Ctrl+Shift+F12
Maximize Editor
Toggle maximize editor
📜 Source: JetBrains — IntelliJ IDEA keymap reference (Windows/macOS). Default keymap for the current IntelliJ IDEA release; the reference lists Windows and macOS side by side. Checked 2026-09-04. How we verify ›
📄 View Printable Cheat Sheet — Download as PDF or print

Navigation is what JetBrains users are actually paying for

Ctrl + N goes to a class by name, Ctrl + Shift + N to any file, and Ctrl + Alt + Shift + N to a symbol — a method or field anywhere in the project. All three accept camel-hump abbreviations, so UsRep finds UserRepository. Ctrl + E lists recently opened files and is usually faster than any tab bar; Ctrl + Shift + E narrows that to recent edit locations. Ctrl + B jumps to a declaration and Ctrl + Alt + Left/Right walks back and forward through everywhere you have been, which makes deep dives into unfamiliar code safe.

Editing shortcuts that differ from other editors

Ctrl + W does not close anything: it extends the selection outward by syntax — word, expression, statement, block — and pressing it repeatedly is how you select a whole method without dragging. Ctrl + D duplicates the line rather than deleting it, and Ctrl + Y deletes the line rather than redoing, two habits that trip up VS Code users for a week. Ctrl + Alt + L reformats the file to the project code style and is worth running before every commit. Ctrl + Shift + Space is smart completion: it filters suggestions to the type the current expression expects, which is a different list from plain Ctrl + Space.

Refactor with keys, not menus

The refactorings in the table are the ones used daily. Shift + F6 renames a symbol project-wide, including usages in strings and comments if you ask. Ctrl + Alt + V extracts the selected expression into a variable, Ctrl + Alt + M the selected statements into a method, and Ctrl + Alt + C and Ctrl + Alt + F extract a constant or a field. Each shows a preview and lets you choose where duplicates should also be replaced.

Tool windows by number

Every tool window has a number on its edge tab, and Alt + 1 for Project, Alt + 7 for Structure and Alt + 9 for Git toggle them. When the panels crowd the editor, Ctrl + Shift + F12 hides them all; press it again to restore the previous layout. Shift + F10 runs and Shift + F9 debugs the current configuration; the stepping keys — F8, F7, Shift + F8, F9 — are the same in every JetBrains IDE.

Frequently asked questions

Do these shortcuts apply to PyCharm and WebStorm?

Yes. All JetBrains IDEs share the default keymap, so the bindings here work in PyCharm, WebStorm, GoLand, Rider, CLion and PhpStorm, with only language-specific actions differing.

What does Ctrl + W do in IntelliJ?

It extends the selection to the next syntactic unit — word, then expression, then statement, then block. It does not close the editor tab; that is Ctrl + F4.

Why does Ctrl + Y delete the line instead of redo?

That is the default JetBrains binding. Redo is Ctrl + Shift + Z. If it bothers you, the keymap settings let you swap it or switch to the VS Code or Eclipse keymap.

How do I find the macOS equivalent of a shortcut?

Help › Keyboard Shortcuts PDF inside the IDE opens the reference card for your platform, and the JetBrains keymap page lists Windows and macOS side by side.

No shortcuts found
Copied!
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

🤖 Ask AI about IntelliJ IDEA shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok