Master IntelliJ IDEA: 100+ Essential Windows Shortcuts to Boost Your Coding Efficiency

Discover a comprehensive collection of IntelliJ IDEA Windows shortcuts, organized into 16 categories, complete with animated demonstrations, enabling developers to accelerate building, editing, navigation, refactoring, debugging, and version control tasks, ultimately enhancing productivity and mastering the IDE’s powerful features.

Java Interview Crash Guide
Java Interview Crash Guide
Java Interview Crash Guide
Master IntelliJ IDEA: 100+ Essential Windows Shortcuts to Boost Your Coding Efficiency

1. Build/Compile

Ctrl + F9 : Build Project

This shortcut is equivalent to the menu Build → Build Project .

Executing this command compiles all classes in the project and outputs the results to the out directory. IntelliJ IDEA supports incremental builds, recompiling only modified classes.

Ctrl + Shift + F9 : Recompile Current Class

This shortcut is equivalent to the menu Build → Recompile ‘class name’ .

Open the class you want to compile and run the command to recompile that class only.

2. Text Editing

Ctrl + X : Cut

Cuts the selected text; if nothing is selected, cuts the current line.

Ctrl + C : Copy

Copies the selected text; if nothing is selected, copies the current line.

Ctrl + V : Paste

Pastes the previously copied content.

Ctrl + Alt + Shift + V : Paste as Plain Text

Pastes the clipboard content as plain text, stripping formatting.

Ctrl + Shift + V : Paste from History

Selects a previously copied entry from the clipboard history to paste.

Ctrl + D : Duplicate Line

Duplicates the line where the caret is located.

Ctrl + Shift + C : Copy File Path

Copies the full path of the selected file.

Ctrl + Alt + Shift + C : Copy Reference

Copies the package path or class name of the selected element.

Ctrl + S : Save All

Saves all modified files.

Ctrl + Z : Undo

Reverts the last operation.

Ctrl + Shift + Z : Redo

Restores the last undone change.

Tab : Indent

Indents the selected line or block.

Shift + Tab : Unindent

Removes one level of indentation.

Ctrl + Alt + I : Auto-Indent Lines

Automatically indents the current line to the proper code style.

Shift + Enter : Start New Line

Starts a new line regardless of the caret position.

Ctrl + Alt + Enter : Insert New Line Before Current

Creates a new line above the current line.

Ctrl + Y : Delete Line

Deletes the line where the caret is located.

Ctrl + Shift + U : Toggle Case

Changes the case of the selected text.

Ctrl + Alt + Shift + Insert : Create Temporary File

Creates a temporary file of any type that is not saved to disk.

Shift + F4 : Open in New Window

Opens the current file in a separate window.

3. Cursor Operations

Ctrl + Left : Move Cursor Left by Word

Ctrl + Right : Move Cursor Right by 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 : Move to File Start

Ctrl + End : Move to File End

4. Text Selection

Ctrl + A : Select All

Shift + Left : Extend Selection Left

Shift + Right : Extend Selection Right

Ctrl + Shift + Left : Select Word Left

Ctrl + Shift + Right : Select Word Right

Shift + Home : Select to Line Start

Shift + End : Select to Line End

Shift + Up : Extend Selection Up

Shift + Down : Extend Selection Down

Ctrl + Shift + [ : Select to Block Start

Ctrl + Shift + ] : Select to Block End

Ctrl + Shift + PageUp : Select to Page Top

Ctrl + Shift + PageDown : Select to Page Bottom

Shift + PageUp : Page Up Selection

Shift + PageDown : Page Down Selection

Ctrl + Shift + Home : Select to File Start

Ctrl + Shift + End : Select to File 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 + . : Collapse Selection

6. Multiple Cursors and Block Selection

Alt + Shift + Click : Add/Remove Caret

Alt + Shift + Insert : Toggle Column Selection Mode

Double‑click Ctrl + Up : Clone Caret Upwards

Double‑click Ctrl + Down : Clone Caret Downwards

Alt + Shift + G : Add Caret to Every Selected Line

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 : Type‑Matching Completion

Ctrl + Alt + Space : Second‑Level Completion

Ctrl + Shift + Enter : Complete Current Statement

Ctrl + Alt + L : Reformat Code

Ctrl + P : Parameter Info

Ctrl + Q : Quick Documentation

Ctrl + Shift + Up : Move Statement Up

Ctrl + Shift + Down : Move Statement Down

Ctrl + Alt + Shift + Left : Move Element Left

Ctrl + Alt + Shift + Right : Move Element Right

Alt + Shift + Up : Move Block Up

Alt + Shift + Down : Move Block Down

Ctrl + / : Toggle Line Comment

Ctrl + Shift + / : Toggle Block Comment

Alt + Insert : Generate Code

8. Context Navigation

Alt + Down : Jump to Next Method

Alt + Up : Jump to Previous Method

Ctrl + G : Go to Line

Ctrl + Tab : Switch Active File

Alt + F1 : Locate File in Project View

Ctrl + E : Recent Files

Ctrl + Shift + Backspace : Navigate to Last Edit Location

Ctrl + Alt + Left : Navigate Back

Ctrl + Alt + Right : Navigate Forward

Ctrl + Alt + Down : Next Event

Ctrl + Alt + Up : Previous Event

Alt + Right : Select Next Tab

Alt + Left : Select Previous Tab

F11 : Toggle Anonymous Bookmark

Ctrl + Shift + [digit] : Switch to Numbered Bookmark

Ctrl + F11 : Toggle Bookmark with Mnemonic

Shift + F11 : Show All Bookmarks

Ctrl + [digit] : Jump to Numbered Bookmark

Alt + 7 : Show Structure Window

Alt + 3 : Show Find Window

9. Search Operations

Double‑click Shift : Select All Occurrences

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 and Navigate

Ctrl + F12 : Open File Structure Popup

Ctrl + Alt + Shift + N : Find Symbol (class, method, etc.)

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

Ctrl + U : Go to Super Method

Ctrl + Alt + B : Go to Implementation

Ctrl + Shift + F7 : Highlight Usages in File

11. Code Analysis

Alt + Enter : Show Intent Actions (analysis)

Ctrl + F1 : Show Error Description

F2: Next Highlighted Error

Shift + F2: Previous Highlighted Error

Ctrl + Alt + Shift + I : Run Inspection by Name

Alt + 6 : Show Problems Tool Window

12. Run and Debug

Double‑click Ctrl : Run All

Shift + F10 : Run Context Configuration

Alt + Shift + F10 : Open Run Configurations

Shift + F9 : Debug Context Configuration

Alt + Shift + F9 : Open Debug Configurations

Ctrl + Alt + F5 : Attach to Process

Ctrl + F2 : Stop

F9: Run to Cursor (Resume)

Ctrl + Shift + F2 : Stop Background Process

F8: Step Over

Alt + Shift + F8: Force Step Over

F7: Step Into

Shift + F7: Smart Step Into

Alt + Shift + F7: Force Step Into

Shift + F8: Step Out

Alt + F9: Run to Cursor

Ctrl + Alt + F9: Force Run to Cursor

Alt + F10: Show Execution Point

Alt + F8: Evaluate Expression

Ctrl + Alt + F8: Quick Evaluate Expression

Ctrl + F8 : Toggle Line Breakpoint

Ctrl + Alt + Shift + F8 : Toggle Temporary Breakpoint

Ctrl + Shift + F8 : View Breakpoints

Ctrl + Shift + F8 : Edit Breakpoint

Alt + 4 : Show Run Tool Window

Alt + 5 : Show Debug Tool Window

Alt + 8 : Show Services Tool Window

13. Code Refactoring

Ctrl + Alt + Shift + T : Open Refactor This Menu

Shift + F6: Rename

Ctrl + F6: Change Signature

Ctrl + Alt + N: Inline

F6: Move

Ctrl + Alt + M : Extract Method

Ctrl + Alt + F : Introduce Field

Ctrl + Alt + P : Introduce Parameter

Ctrl + Alt + V : Introduce Variable

Alt + Delete : Safe Delete

14. Global CVS Operations

Alt + ` : Open CVS Window

Ctrl + K : Commit

Ctrl + T : Update Project

Ctrl + Alt + Z : Rollback

Ctrl + Shift + K : Pull

Ctrl + Alt + Shift + Down : Next Change

Ctrl + Alt + Shift + Up : Previous Change

Alt + 9 : Show Version Control Window

Alt + 0 : Show Commit Window

15. Diff Viewer

F7: Next Difference

Shift + F7: Previous Difference

Ctrl + Alt + R : Accept Left

Ctrl + Alt + A : Accept Right

Ctrl + Shift + Tab : Switch to Opposite Diff Pane

Ctrl + Shift + D : Open Diff Settings

16. Tool Windows

Shift + Escape : Hide Active Tool Window

Ctrl + Shift + F12 : Hide All Tool Windows

F12: Jump to Last Tool Window

Ctrl + Alt + Shift + Left : Extend Window Left

Ctrl + Alt + Shift + Right : Extend Window Right

Ctrl + Alt + Shift + Up : Extend Window Up

Ctrl + Alt + Shift + Down : Extend Window Down

Alt + 1 : Show Project Window

Alt + 2 : Show Bookmarks Window

Alt + 3 : Show Find Window

Alt + 4 : Show Run Window

Alt + 5 : Show Debug Window

Alt + 6 : Show Problems Window

Alt + 7 : Show Structure Window

Alt + 8 : Show Services Window

Alt + 9 : Show Version Control Window

Alt + 0 : Show Commit Window

Alt + F12 : Show Terminal Window

Original source: blog.csdn.net/weixin_67276852?type=blog

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ProductivityIntelliJ IDEAWindowsIDEkeyboard shortcuts
Java Interview Crash Guide
Written by

Java Interview Crash Guide

Dedicated to sharing Java interview Q&A; follow and reply "java" to receive a free premium Java interview guide.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.