Intellij Cheat Sheet [2026]
These are just some of the most commonly used shortcuts in IntelliJ. Mastering these will help you become more productive and efficient in your development workflow.
| Action | Shortcut (Win/Linux) | macOS | | :--- | :--- | :--- | | | Ctrl + Space | Ctrl + Space | | Smart Completion (filters type-matched suggestions) | Ctrl + Shift + Space | Ctrl + Shift + Space | | Duplicate Line/Block | Ctrl + D | Cmd + D | | Delete Line | Ctrl + Y | Cmd + Backspace | | Move Line Up/Down | Ctrl + Shift + Up/Down | Cmd + Shift + Up/Down | | Comment Line/Block | Ctrl + / | Cmd + / | | Start New Line (anywhere) | Shift + Enter | Shift + Enter | | Join Lines | Ctrl + Shift + J | Ctrl + Shift + J | | Surround With (if/else, try/catch, loops) | Ctrl + Alt + T | Cmd + Opt + T | | Unwrap/Remove (surrounding code) | Ctrl + Shift + Delete | Cmd + Shift + Backspace | | Expand/Shrink Selection | Ctrl + W / Ctrl + Shift + W | Cmd + W / Cmd + Shift + W | intellij cheat sheet
| Action | Shortcut (Win/Linux) | macOS | | :--- | :--- | :--- | | (commit, push, pull) | Ctrl + V then V | Ctrl + V then V | | Commit Changes | Ctrl + K | Cmd + K | | Push Changes | Ctrl + Shift + K | Cmd + Shift + K | | Update Project (pull) | Ctrl + T | Cmd + T | | Show Diff | Ctrl + D | Cmd + D | | Rollback/Undo (local changes) | Ctrl + Alt + Z | Cmd + Opt + Z | | Annotate (blame) | Ctrl + Shift + A → type "Annotate" | Same | | Show Version Control Log | Alt + 9 (tool window) | Cmd + 9 | These are just some of the most commonly