IDEA Quick Start
Li
Li Wei
IDEA Quick Start
Shortcut Commands
Common Commands
- Shift + Double‑click – Class search
- Command/Ctrl + Shift + F – File search
- Option + Command + L – Reformat code – you can reformat the whole project, the currently opened file, or the selected code region
- Control + Option + O – Optimize imports in the current class
- Shift + Option + Up/Down – Move the current line of code up or down
More commands – Mac and Windows differ slightly, but the basics are the same.
Ctrl
| Shortcut | Description |
|---|---|
| Ctrl + F | Find text in the current file (必备) |
| Ctrl + R | Replace text in the current file (必备) |
| Ctrl + Z | Undo (必备) |
| Ctrl + Y | Delete the line where the caret is or delete the selected lines (必备) |
| Ctrl + X | Cut the line where the caret is or cut the selected content |
| Ctrl + C | Copy the line where the caret is or copy the selected content |
| Ctrl + D | Duplicate the line where the caret is (or the selection) and insert the copy below the caret (必备) |
| Ctrl + W | Expand selection progressively – first selects the word or block at the caret, pressing repeatedly expands the selection (必备) |
| Ctrl + E | Show the list of recently opened files (必备) |
| Ctrl + N | Find a class file by typing its class name (必备) |
| Ctrl + G | Jump to a specific line in the current file |
| Ctrl + J | Insert a custom live template (必备) |
| Ctrl + P | Show method parameter hints (必备) |
| Ctrl + Q | Show documentation for the variable / class / method under the caret (also works while the completion popup is shown) (必备) |
| Ctrl + U | Navigate to the super method / interface definition of the method under the caret Ctrl + 左键单击 |
| Ctrl + B | Go to the declaration of the method/variable under the caret (same as (必备)) |
| Ctrl + K | Commit changes to version control (requires the project to be under VCS) |
| Ctrl + T | Update the project from version control (requires VCS) |
| Ctrl + H | Show the hierarchy of the current class |
| Ctrl + O | Choose a method to override |
| Ctrl + I | Choose a method to implement |
| Ctrl + + | Expand code |
| Ctrl + - | Collapse code |
| Ctrl + / | Comment/uncomment the current line – uses the comment syntax appropriate for the file type (必备) |
| Ctrl + [ | Move caret to the opening brace of the current block |
| Ctrl + ] | Move caret to the closing brace of the current block |
| Ctrl + F1 | Show error description for the highlighted error at the caret (必备) |
| Ctrl + F3 | Jump to the next occurrence of the selected word (必备) |
| Ctrl + F4 | Close the current editor tab |
| Ctrl + F8 | In Debug mode, toggle a breakpoint on the current line |
| Ctrl + F9 | Build the project (Make Project) |
| Ctrl + F11 | Set or clear a bookmark on the selected file/folder (必备) |
| Ctrl + F12 | Pop up the file‑structure view; you can type to filter directly |
| Ctrl + Tab | Switch between editor tabs; press Delete while switching to close the selected tab |
| Ctrl + End | Jump to the end of the file |
| Ctrl + Home | Jump to the beginning of the file |
| Ctrl + Space | Basic code completion (on Windows the shortcut is often taken by the IME; you may want to reassign it) Ctrl + 逗号 (必备) |
| Ctrl + Delete | Delete the word or Chinese phrase after the caret (必备) |
| Ctrl + Backspace | Delete the word or Chinese phrase before the caret (必备) |
| Ctrl + 1…9 | Jump to the corresponding numeric bookmark (必备) |
| Ctrl + Click (on a file tab) | Show the full path of the opened file (必备) |
| Ctrl + (hold) | While holding Ctrl, a tooltip shows a summary of the class under the caret |
| Ctrl + Left Arrow | Move caret to the start of the current word/Chinese phrase (必备) |
| Ctrl + Right Arrow | Move caret to the end of the current word/Chinese phrase (必备) |
| Ctrl + Page Up | Same effect as scrolling the mouse wheel forward (必备) |
| Ctrl + Page Down | Same effect as scrolling the mouse wheel backward (必备) |
Alt
| Shortcut | Description |
|---|---|
| **Alt + ` | 显示版本控制常用操作菜单弹出层`** (essential) |
| Alt + Q | Show a popup with the declaration / context information of the current class |
| Alt + F1 | Show a popup with many possible navigation targets for the current file (必备) |
| Alt + F2 | Show a popup to choose a browser for opening the current page |
| Alt + F3 | Select text and find the next occurrence, highlighting each match |
| Alt + F7 | Find usages of the method/variable/class under the caret |
| Alt + F8 | In Debug mode, open the “Evaluate Expression” dialog for the selected object |
| Alt + Home | Jump to / show the Navigation Bar of the current file |
| Alt + Enter | IntelliJ IDEA offers quick‑fix suggestions based on the problem under the caret; results vary with caret position (必备) |
| Alt + Insert | Generate code (getters/setters, constructors, toString, etc.) (必备) |
| Alt + Left Arrow | Switch between sub‑views of the current tool window (e.g., Output, Debugger in the Debug window) (必备) |
| Alt + Right Arrow | Same as above, but opposite direction (必备) |
| Alt + Page Up | Move caret to the previous method in the file (必备) |
| Alt + Page Down | Move caret to the next method in the file (必备) |
| Alt + 1…9 | Show the corresponding tool window tab; “1” is usually Project (必备) |
Shift
| Shortcut | Description |
|---|---|
| Shift + F1 | Open external documentation if linked |
| Shift + F2 | Jump to the previous highlighted error or warning |
| Shift + F3 | In Find mode, find the previous match |
| Shift + F4 | Open the current file in a new window, keeping the original open |
| Shift + F6 | Rename a file or folder |
| Shift + F7 | Smart step‑into in Debug mode – if multiple method calls are on the line, a chooser appears |
| Shift + F8 | Step out in Debug mode (same effect as F9) |
| Shift + F9 | Equivalent to clicking the toolbar Debug button |
| Shift + F10 | Equivalent to clicking the toolbar Run button |
| Shift + F11 | Show the bookmarks popup (必备) |
| Shift + Tab | Unindent |
| Shift + ESC | Hide the currently active (or last active) tool window |
| Shift + End | Select from the caret to the end of the line |
| Shift + Home | Select from the caret to the start of the line |
| Shift + Enter | Start a new line below the current one and place the caret there (必备) |
| Shift + Click (on a file tab) | Close the current file (必备) |
| Shift + Mouse Wheel | Scroll horizontally in the current file (必备) |
Ctrl + Alt
| Shortcut | Description |
|---|---|
| Ctrl + Alt + L | Reformat code – works on the current file or the whole package (必备) |
| Ctrl + Alt + O | Optimize imports – works on the current file or the whole package (必备) |
| Ctrl + Alt + I | Auto‑indent the current line or selected block (similar to reformat) |
| Ctrl + Alt + T | Show the “Surround With” menu for the selected code (必备) |
| Ctrl + Alt + J | Open the template chooser and add the selected code to a live template |
| Ctrl + Alt + H | Show the call hierarchy |
| Ctrl + Alt + B | Go to the concrete implementation of a method (skipping interfaces) |
| Ctrl + Alt + V | Introduce a variable quickly |
| Ctrl + Alt + Y | Synchronize / refresh |
| Ctrl + Alt + S | Open IntelliJ IDEA’s Settings dialog (必备) |
| Ctrl + Alt + F7 | Show usages of the selected element in a popup |
| Ctrl + Alt + F11 | Toggle full‑screen mode |
| Ctrl + Alt + Enter | Insert a blank line above the current line and place the caret there (必备) |
| Ctrl + Alt + Home | Show a popup with files related to the current one |
| Ctrl + Alt + Space | Class‑name completion |
| Ctrl + Alt + Left Arrow | Navigate back to the previous location (必备) |
| Ctrl + Alt + Right Arrow | Navigate forward to the next location (必备) |
| Ctrl + Alt + Page Up | In Find mode, jump to the previous file in the search results |
| Ctrl + Alt + Page Down | In Find mode, jump to the next file in the search results |
Ctrl + Shift
| Shortcut | Description |
|---|---|
| Ctrl + Shift + F | Find text in the whole project or a specified directory (必备) |
| Ctrl + Shift + R | Replace text in the whole project or a specified directory (必备) |
| Ctrl + Shift + J | Join the next line to the end of the current line (必备) |
| Ctrl + Shift + Z | Redo (cancel undo) (必备) |
| Ctrl + Shift + W | Shrink the progressive selection (opposite of Ctrl + W) (必备) |
| Ctrl + Shift + N | Open a file or directory by name; add a trailing slash to open a folder (必备) |
| Ctrl + Shift + U | Toggle case of the selected text (必备) |
| Ctrl + Shift + T | Generate a unit‑test class for the current class (or select an existing one) (必备) |
| Ctrl + Shift + C | Copy the absolute path of the current file to the clipboard (必备) |
| Ctrl + Shift + V | Show the clipboard history popup |
| Ctrl + Shift + E | Show a popup with recently edited files |
| Ctrl + Shift + H | Show the method hierarchy |
| Ctrl + Shift + B | Go to the type declaration (必备) |
| Ctrl + Shift + I | Quick‑view definition of the method or class under the caret |
| Ctrl + Shift + A | Find actions / settings |
| Ctrl + Shift + / | Comment/uncomment a block of code (必备) |
| Ctrl + Shift + [ | Select from the caret to the matching opening bracket (必备) |
| Ctrl + Shift + ] | Select from the caret to the matching closing bracket (必备) |
| Ctrl + Shift + + | Expand all code folds (必备) |
| Ctrl + Shift + - | Collapse all code folds (必备) |
| Ctrl + Shift + F7 | Highlight all occurrences of the selected text (Esc to clear) (必备) |
| Ctrl + Shift + F8 | Set a conditional breakpoint in Debug mode |
| Ctrl + Shift + F9 | Compile the selected file / package / module |
| Ctrl + Shift + F12 | Maximize the editor window (必备) |
| Ctrl + Shift + Space | Smart code completion |
| Ctrl + Shift + Enter | Complete the statement and add a semicolon at the end of the line (必备) |
| Ctrl + Shift + Backspace | Navigate to the last edit location (必备) |
| Ctrl + Shift + 1…9 | Add a numeric bookmark quickly (必备) |
| Ctrl + Shift + Click | With the caret on a class field, jump directly to its declaration (必备) |
| Ctrl + Shift + Left Arrow | Move the caret to the start of the current word/Chinese phrase and select it (必备) |
| Ctrl + Shift + Right Arrow | Move the caret to the end of the current word/Chinese phrase and select it (必备) |
| Ctrl + Shift + Page Up | With the caret on a method name, move the method above the previous method (reorder) (必备) |
| Ctrl + Shift + Page Down | With the caret on a method name, move the method below the next method (reorder) (必备) |
Alt + Shift
| Shortcut | Description |
|---|---|
| Alt + Shift + N | Choose / add a task (必备) |
| Alt + Shift + F | Show the “Add to Favorites” popup / add to favorites |
| Alt + Shift + C | View the change list of recent operations |
| Alt + Shift + I | Open the current file in the project view |
| Alt + Shift + F7 | In Debug mode, step into the next method; if the current line calls another method, it will step into that method recursively |
| Alt + Shift + F9 | Open the selectable menu for Debug |
| Alt + Shift + F10 | Open the selectable menu for Run |
| Alt + Shift + Double‑Click | Select the double‑clicked word/phrase; holding the mouse allows multi‑selection (必备) |
| Alt + Shift + Page Up | Move the current line up (必备) |
| Alt + Shift + Page Down | Move the current line down (必备) |
Ctrl + Shift + Alt
| Shortcut | Description |
|---|---|
| Ctrl + Shift + Alt + V | Paste without formatting (必备) |
| Ctrl + Shift + Alt + N | Go to a specific variable / method |
| Ctrl + Shift + Alt + S | Open the current project settings (必备) |
| Ctrl + Shift + Alt + C | Copy reference information |
Other
| Shortcut | Description |
|---|---|
| F2 | Jump to the next highlighted error or warning (必备) |
| F3 | In Find mode, go to the next match |
| F4 | Edit source (必备) |
| F7 | In Debug mode, step into; if the current line is a method call, it steps into that method (but not further nested calls) |
| F8 | In Debug mode, step over; if the current line is a method call, it does not step into the method |
| F9 | Resume program execution; if there are breakpoints later, it stops at the next one |
| F11 | Add a bookmark (必备) |
| F12 | Return to the previous tool window (必备) |
| Tab | Indent |
| ESC | Move focus from a tool window back to the editor |
| Shift (pressed twice) | Show the Search Everywhere popup layer |
Frequently Used Plugins
Below is a curated list of plugins:
| # | Plugin | Description | Official Site |
|---|---|---|---|
| 1 | Grep Console | Highlights and filters console logs; supports regex and custom styles | https://plugins.jetbrains.com/plugin/7125-grep-console |
| 2 | Markdown Editor | Integrated Markdown editor with live preview, syntax highlighting, and shortcuts | https://plugins.jetbrains.com/plugin/5973-markdown |
| 3 | Statistic | Shows real‑time statistics of project code lines, file‑type distribution, etc. | https://plugins.jetbrains.com/plugin/4509-statistic |
| 4 | Git Stats | Visualizes Git history, author contributions, and other repository metrics | https://plugins.jetbrains.com/plugin/10081-gitstats |
| 5 | Conventional Commits | Enforces conventional Git commit messages and can auto‑generate a CHANGELOG | https://commitlint.js.org/ |
| 6 | CodeGlance Pro | Shows a minimap of the code on the editor’s side for quick navigation | https://plugins.jetbrains.com/plugin/12793-codeglance-pro |
| 7 | Show Comment | Highlights comments and provides a shortcut to view method/class documentation | |
| 8 | Protocol Buffers | Assists with .proto files – syntax highlighting, compilation, etc. | https://github.com/joinville/protobuf-idea-plugin |
| 9 | Maven Helper | Analyzes Maven dependencies, detects conflicts, and runs Maven goals quickly | https://plugins.jetbrains.com/plugin/7179-maven-helper |
| 10 | Apifox Helper | Integrates Apifox for API testing, documentation generation, and automation | https://www.apifox.cn/ |
| 11 | Arthas IDEA | IDEA plugin for the Arthas Java diagnostic tool – remote connection and runtime analysis | https://arthas.aliyun.com/ |
| 12 | Save Actions X | Automatically formats code, optimizes imports, and performs refactorings on save | https://plugins.jetbrains.com/plugin/18124-save-actions-x |
| 13 | GitToolBox | Enhances Git integration with branch management, inline blame, and more |
(content truncated)
Originally written by Li Wei (李唯_) and published in Chinese on 后端技术栈全书 (Full-Stack Backend Engineering). Translated and adapted for DriftSeas with permission.
Sources & References
- [1]https://plugins.jetbrains.com/plugin/7125-grep-console
- [2]https://plugins.jetbrains.com/plugin/5973-markdown
- [3]https://plugins.jetbrains.com/plugin/4509-statistic
- [4]https://plugins.jetbrains.com/plugin/10081-gitstats
- [5]https://commitlint.js.org/
- [6]https://plugins.jetbrains.com/plugin/12793-codeglance-pro
- [7]https://github.com/joinville/protobuf-idea-plugin
- [8]https://plugins.jetbrains.com/plugin/7179-maven-helper
- [9]https://www.apifox.cn/
- [10]https://arthas.aliyun.com/
- [11]https://plugins.jetbrains.com/plugin/18124-save-actions-x
- [12]后端技术栈全书 (Full-Stack Backend Engineering)