Comprehensive List of IntelliJ IDEA Windows Shortcut Keys with Visual Demonstrations
This article provides a complete, categorized collection of IntelliJ IDEA shortcut keys for Windows, accompanied by animated GIF demonstrations and explanations, covering build operations, text editing, cursor movement, selection, code folding, multi‑cursor editing, navigation, search, and other essential IDE functionalities.
1. Build/Compile
Ctrl + F9 : Build Project
This shortcut is equivalent to the menu Build → Build Project . It compiles all classes in the project and outputs the results to the out directory, supporting incremental builds that only recompile modified classes.
Ctrl + Shift + F9 : Recompile Current Class
This shortcut corresponds to Build → Recompile ‘class name’ . It recompiles the class currently opened in the editor.
2. Text Editing
Ctrl + X : Cut
Cuts the selected text; if nothing is selected, it cuts the entire current line.
Ctrl + C : Copy
Copies the selected text; if nothing is selected, it copies the entire current line.
Ctrl + V : Paste
Pastes the most recent entry from the clipboard.
Ctrl + Alt + Shift + V : Paste as Plain Text
Pastes the clipboard content as plain text, stripping any formatting.
Ctrl + Shift + V : Paste from History
Opens a list of previously copied entries and allows you to select one to paste.
Ctrl + D : Duplicate Line
Duplicates the line where the cursor is located.
Ctrl + Shift + C : Copy File Path
Copies the full path of the selected file.
Ctrl + Alt + Shift + C : Copy Reference
Copies the fully qualified class name or package path.
Ctrl + S : Save All
Saves all modified files in the project.
Ctrl + Z : Undo
Reverts the last action.
Ctrl + Shift + Z : Redo
Restores the last undone action.
Tab : Indent
Indents the selected line or block.
Shift + Tab : Unindent
Removes one level of indentation.
Ctrl + Alt + I : Auto‑Indent
Automatically formats the current line or selection to the proper indentation level.
Shift + Enter : Start New Line
Starts a new line below the current one regardless of cursor position.
Ctrl + Alt + Enter : Start New Line Before
Inserts a new line above the current line.
Ctrl + Y : Delete Line
Deletes the line where the cursor resides.
Ctrl + Shift + U : Toggle Case
Changes the case of the selected text (upper‑case ↔ lower‑case).
Ctrl + Alt + Shift + Insert : Create Scratch File
Creates a temporary file that is not saved to disk.
Shift + F4 : Open in New Window
Opens the current file in a separate editor window.
3. Cursor Operations
Ctrl + Left : Move Cursor Left by One Word
Ctrl + Right : Move Cursor Right by One Word
Home : Move to Line Start
End : Move to Line End
Ctrl + Shift + M : Jump to Matching Brace
Press repeatedly to toggle between the opening and closing braces.
Ctrl + [ : Move to Block Start
Ctrl + ] : Move to Block End
Alt + Down : Next Method
Alt + Up : Previous Method
Ctrl + PageUp : Scroll to Top of Page
Ctrl + PageDown : Scroll to Bottom of Page
PageUp : Page Up
PageDown : Page Down
Ctrl + Home : Jump to File Start
Ctrl + End : Jump to File End
4. Text Selection
Ctrl + A : Select All
Shift + Left / Shift + Right : Extend Selection Left/Right
Ctrl + Shift + Left / Ctrl + Shift + Right : Select Word Left/Right
Shift + Home / Shift + End : Select to Line Start/End
Shift + Up / Shift + Down : Extend Selection Up/Down
Ctrl + Shift + [ / Ctrl + Shift + ] : Select to Block Start/End
Ctrl + Shift + PageUp / Ctrl + Shift + PageDown : Select to Page Top/Bottom
Ctrl + Shift + Home / Ctrl + Shift + End : Select to File Start/End
Ctrl + W : Expand Selection
Ctrl + Shift + W : Shrink Selection
5. Code Folding
Ctrl + NumPad+ : Expand Code Block
Ctrl + NumPad- : Collapse Code Block
Ctrl + Alt + NumPad+ : Recursively Expand
Ctrl + Alt + NumPad- : Recursively Collapse
Ctrl + Shift + NumPad+ : Expand All
Ctrl + Shift + NumPad- : Collapse All
Ctrl + . : Fold Selection
6. Multiple Cursors & Range Selection
Alt + Shift + Click : Add/Remove Cursor
Alt + Shift + Insert : Toggle Column Selection Mode
Double‑click Ctrl + Up : Clone Cursor Upwards
Double‑click Ctrl + Down : Clone Cursor Downwards
Alt + Shift + G : Add Cursor to Every Line in Selection
Alt + J : Select Next Occurrence
Alt + Shift + J : Deselect Last Occurrence
Ctrl + Alt + Shift + J : Select All Occurrences
Alt + Shift + Middle‑Click : Create Rectangular Selection
Alt + Click : Drag to Create Rectangular Selection
Ctrl + Alt + Shift + Click : Drag to Create Multiple Rectangular Selections
7. Assisted Coding
Alt + Enter : Show Intention Actions
Ctrl + Space : Basic Code Completion
Ctrl + Shift + Space : Smart Type‑Matching Completion
Ctrl + Alt + Space : Second Completion Variant
Ctrl + Shift + Enter : Complete Current Statement
Ctrl + Alt + L : Reformat Code
Ctrl + P : Parameter Info
Ctrl + Q : Quick Documentation
Ctrl + Shift + Up / Ctrl + Shift + Down : Move Statement Up/Down
Ctrl + Alt + Shift + Left / Right : Move Element Left/Right
Alt + Shift + Up / Down : Move Line(s) Up/Down
Ctrl + / : Toggle Line Comment
Ctrl + Shift + / : Toggle Block Comment
Alt + Insert : Generate Code (e.g., getters/setters)
8. Context Navigation
Alt + Down / Alt + Up : Navigate to Next/Previous Method
Ctrl + G : Go to Line
Ctrl + Tab : Switch Between Open Files
Alt + F1 : Select File in Project View
Ctrl + E : Recent Files
Ctrl + Shift + Backspace : Navigate to Last Edit Location
Ctrl + Alt + Left / Right : Navigate Back/Forward
Ctrl + Alt + Down / Up : Next/Previous Event
Alt + Right / Left : Switch to Next/Previous Tab
F11 : Toggle Anonymous Bookmark
Ctrl + Shift + [digit] : Switch to Numeric Bookmark
Ctrl + F11 : Toggle Bookmark with Mnemonic
Shift + F11 : Show All Bookmarks
Ctrl + [digit] : Jump to Numeric Bookmark
Alt + 7 : Show Structure Tool Window
Alt + 3 : Show Find Tool Window
9. Search Operations
Shift (double‑click) : Find All
Ctrl + F : Find in Current File
F3 : Find Next
Shift + F3 : Find Previous
Ctrl + R : Replace in Current File
Ctrl + Shift + F : Find in All Files
Ctrl + Shift + R : Replace in All Files
Ctrl + F3 : Find Next Occurrence of Word at Caret
Ctrl + Shift + N : Find File by Name
Ctrl + F12 : Open File Structure Popup
Ctrl + Alt + Shift + N : Find Symbol (class, method, variable)
Ctrl + Shift + A : Find Action
10. Symbol Navigation
Alt + F7 : Find Usages
Ctrl + B : Go to Declaration
Ctrl + Shift + B : Go to Declaring Class
Ctrl + Alt + F7 : Show Usages in File
Ctrl + U : Go to Super Method
Ctrl + Alt + B : Go to Implementation
Ctrl + Shift + F7 : Highlight Usages in File
Java Captain
Focused on Java technologies: SSM, the Spring ecosystem, microservices, MySQL, MyCat, clustering, distributed systems, middleware, Linux, networking, multithreading; occasionally covers DevOps tools like Jenkins, Nexus, Docker, ELK; shares practical tech insights and is dedicated to full‑stack Java development.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.