Skip to content
IntelliJ IDEA Keyboard Shortcuts Cheatsheet — Printable PDF Reference

IntelliJ IDEA Keyboard Shortcuts Cheatsheet — Printable PDF Reference

DodaTech Updated Jun 20, 2026 4 min read

📄 Printable PDF: Use your browser’s Print (Ctrl+P / Cmd+P) → “Save as PDF” to get a printer-friendly PDF of this IntelliJ IDEA shortcut cheatsheet.

Complete IntelliJ IDEA keyboard shortcuts for efficient code navigation, editing, debugging, refactoring, and version control. Default keymap (Windows/Linux) shown; macOS equivalents in parentheses.

Navigation

Shortcut (Win/Linux)Shortcut (macOS)What it does
Ctrl+NCmd+OFind class
Ctrl+Shift+NCmd+Shift+OFind file
Ctrl+Alt+Shift+NCmd+Alt+OGo to symbol
Ctrl+ECmd+ERecent files
Ctrl+Shift+ECmd+Shift+ERecently edited files
Ctrl+TabCtrl+TabSwitcher (hold Ctrl)
Alt+→ / ←Ctrl+→ / ←Next / Previous tab
Alt+F1Alt+F1Select current in any view
F11F11Toggle bookmark
Ctrl+F11Alt+F11Bookmark with mnemonic
Shift+F11Cmd+F11Show bookmarks
Ctrl+GCmd+LGo to line
Ctrl+Alt+← / →Cmd+[ / ]Navigate back / forward

Editing

Shortcut (Win/Linux)Shortcut (macOS)What it does
Ctrl+WAlt+↑Extend selection
Ctrl+Shift+WAlt+↓Shrink selection
Ctrl+DCmd+DDuplicate line or selection
Ctrl+YCmd+BackspaceDelete line
Ctrl+C / Ctrl+X / Ctrl+VCmd+C/X/VCopy / Cut / Paste
Ctrl+Shift+VCmd+Shift+VPaste from history
Ctrl+Shift+ZCmd+Shift+ZRedo
Ctrl+ZCmd+ZUndo
Alt+Shift+↑ / ↓Alt+Shift+↑ / ↓Move line up / down
Ctrl+/Cmd+/Comment / uncomment line
Ctrl+Shift+/Cmd+Shift+/Block comment
Ctrl+Shift+EnterCmd+Shift+EnterComplete current statement
Ctrl+Alt+LCmd+Alt+LReformat code
Ctrl+Alt+OCtrl+Alt+OOptimize imports
Ctrl+Alt+ICtrl+Alt+IAuto-indent lines

Code Completion

Shortcut (Win/Linux)Shortcut (macOS)What it does
Ctrl+SpaceCtrl+SpaceBasic completion
Ctrl+Shift+SpaceCtrl+Shift+SpaceSmart completion
Ctrl+Shift+EnterCmd+Shift+EnterComplete statement
Alt+EnterAlt+EnterShow intention actions / quick fix
Ctrl+PCmd+PParameter info
Ctrl+QCtrl+JQuick documentation
Ctrl+Shift+IAlt+SpaceQuick definition
Ctrl+F1Alt+F1Error description

Refactoring

Shortcut (Win/Linux)Shortcut (macOS)What it does
Shift+F6Shift+F6Rename
Ctrl+F6Cmd+F6Change signature
F6F6Move
F5F5Copy
Ctrl+Alt+NCmd+Alt+NInline variable
Ctrl+Alt+MCmd+Alt+MExtract method
Ctrl+Alt+VCmd+Alt+VExtract variable
Ctrl+Alt+FCmd+Alt+FExtract field
Ctrl+Alt+CCmd+Alt+CExtract constant
Ctrl+Alt+PCmd+Alt+PExtract parameter
Ctrl+Shift+Alt+TCtrl+TRefactor this (menu)

Debugging

Shortcut (Win/Linux)Shortcut (macOS)What it does
Shift+F9Ctrl+DDebug
F9Cmd+Alt+RResume program
F8F8Step over
F7F7Step into
Shift+F7Shift+F7Smart step into
Shift+F8Shift+F8Step out
Alt+F8Alt+F8Evaluate expression
Alt+F9Cmd+Alt+F9Run to cursor
Ctrl+F8Cmd+F8Toggle breakpoint
Ctrl+Shift+F8Cmd+Shift+F8View breakpoints

Search & Replace

Shortcut (Win/Linux)Shortcut (macOS)What it does
Ctrl+FCmd+FFind in file
Ctrl+RCmd+RReplace in file
Ctrl+Shift+FCmd+Shift+FFind in path
Ctrl+Shift+RCmd+Shift+RReplace in path
Ctrl+Shift+AShift+Cmd+AFind action
Alt+F7Alt+F7Find usages
Ctrl+F7Cmd+F7Find usages in file
Ctrl+Alt+F7Cmd+Alt+F7Show usages

Version Control / Git

Shortcut (Win/Linux)Shortcut (macOS)What it does
Alt+~ (backtick)Ctrl+VVCS quick popup
Ctrl+KCmd+KCommit changes
Ctrl+Shift+KCmd+Shift+KPush commits
Ctrl+TCmd+TUpdate project (pull)
Alt+Shift+CAlt+Shift+CShow recent changes
Ctrl+Alt+ZCmd+Alt+ZRollback / revert
Ctrl+Alt+ACmd+Alt+AAdd to VCS
Ctrl+Shift+Alt+DShow diff

Build & Run

Shortcut (Win/Linux)Shortcut (macOS)What it does
Shift+F10Ctrl+RRun
Shift+F9Ctrl+DDebug
Ctrl+F2Cmd+F2Stop
Ctrl+Shift+F9Ctrl+Shift+DRun context configuration
Ctrl+Shift+F10Ctrl+Shift+RRun from editor
Alt+Shift+F10Ctrl+Alt+RRun (select config)

Tool Windows

Shortcut (Win/Linux)Shortcut (macOS)What it does
Alt+1Cmd+1Project view
Alt+2Cmd+2Favorites / bookmarks
Alt+3Cmd+3Find
Alt+4Cmd+4Run
Alt+5Cmd+5Debug
Alt+6Cmd+6Problems / TODO
Alt+7Cmd+7Structure
Alt+8Cmd+8Services
Alt+9Cmd+9Version Control
Alt+F12Cmd+F12Terminal
Shift+EscapeShift+EscapeHide active tool window
Ctrl+Shift+F12Cmd+Shift+F12Toggle maximized editor

Live Templates

ShortcutWhat it does
soutSystem.out.println()
soutvSystem.out.println("var = " + var)
psvm or mainpublic static void main(String[] args)
foriFor-loop with index
iterFor-each loop
itarFor-loop over array
ifnif (var == null)
innif (var != null)
thrthrow new
Ctrl+JInsert live template (menu)
How do I find a file quickly in IntelliJ IDEA?
Press Ctrl+Shift+N (Windows/Linux) or Cmd+Shift+O (macOS) to open the “Find File” dialog. Start typing the filename — IntelliJ uses camel case matching, so typing “APC” will find “ApplicationPropertiesController.java”. Use Ctrl+N / Cmd+O to find classes specifically.
How do I reformat code in IntelliJ IDEA?
Press Ctrl+Alt+L (Windows/Linux) or Cmd+Alt+L (macOS) to reformat the entire file or selected code. IntelliJ applies your configured code style settings (spaces, indentation, braces, imports). Use Ctrl+Alt+O / Cmd+Alt+O to optimize imports at the same time.

See the full IntelliJ IDEA guide for advanced configuration.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro