Idea shortcut keys are: Ctrl F, Ctrl R, Ctrl Z, Ctrl Y, Ctrl X, Ctrl C, Ctrl D, Alt `, Alt Q, Alt F1, Alt F2, Alt F3, Alt F7, Shift F1, Shift F2, etc.
The operating environment of this tutorial: Windows 7 system, IntelliJ IDEA2018.3 version, Dell G3 computer.
Shortcut keys | Introduction | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ctrl F | Search text in the current file (required)
|
||||||||||||||||||||||||||||||||||
Ctrl R | Replace text in the current file (required) Prepare)
|
||||||||||||||||||||||||||||||||||
Ctrl Z | Undo (required)
|
||||||||||||||||||||||||||||||||||
Ctrl Y | Delete the line where the cursor is or delete the selected line (required)
|
||||||||||||||||||||||||||||||||||
Cut the line where the cursor is or Cut the selected content | |||||||||||||||||||||||||||||||||||
Copy the line where the cursor is or copy the selected content | |||||||||||||||||||||||||||||||||||
Copy the line where the cursor is or copy the selected content, and insert the copied content below the cursor position | (required)
|
||||||||||||||||||||||||||||||||||
Progressive Select the code block. You can select the word or paragraph where the cursor is located. Continuous pressing will expand the selection range based on the original selection | (required)
|
||||||||||||||||||||||||||||||||||
Display a list of recently opened file records | |||||||||||||||||||||||||||||||||||
Search for class files based on the entered | class name | ||||||||||||||||||||||||||||||||||
Jump to the specified line in the current file | |||||||||||||||||||||||||||||||||||
Insert a custom dynamic code template | |||||||||||||||||||||||||||||||||||
Method parameter prompt display | |||||||||||||||||||||||||||||||||||
The variable/class name/method name where the cursor is located, etc. Above (you can also press when prompted to add) to display the document content | |||||||||||||||||||||||||||||||||||
Go to the method/interface definition of the parent class of the method where the current cursor is located | |||||||||||||||||||||||||||||||||||
Enter the interface or define the method/variable where the cursor is located, which is equivalent to | Ctrl left-click
|
||||||||||||||||||||||||||||||||||
Version control submission project, this project needs to be added to version control before it can be used | |||||||||||||||||||||||||||||||||||
Version control update project, this project needs to be added to version control before it can be used | |||||||||||||||||||||||||||||||||||
Display the hierarchy of the current class | |||||||||||||||||||||||||||||||||||
Select an overridable method | |||||||||||||||||||||||||||||||||||
Select an inheritable method | |||||||||||||||||||||||||||||||||||
Expand code | |||||||||||||||||||||||||||||||||||
Collapse code | |||||||||||||||||||||||||||||||||||
Comment the line of code where the cursor is, different comment symbols will be used according to the current file type | (required)
|
||||||||||||||||||||||||||||||||||
Move the cursor to the beginning of the curly braces of the current code | |||||||||||||||||||||||||||||||||||
Move the cursor to the end of the curly braces of the current code | |||||||||||||||||||||||||||||||||||
Display error message in the error code where the cursor is located | |||||||||||||||||||||||||||||||||||
Redirect to the selected The next reference position of the word | |||||||||||||||||||||||||||||||||||
Close the current editing file | |||||||||||||||||||||||||||||||||||
In Debug mode, set the current breakpoint of the cursor. If it is already a breakpoint, remove the breakpoint | |||||||||||||||||||||||||||||||||||
Execute Make Project operation | |||||||||||||||||||||||||||||||||||
Select files/folders and use mnemonics to set/cancel bookmarks | |||||||||||||||||||||||||||||||||||
Pop up the current file structure layer, you can input directly on the pop-up layer for filtering | |||||||||||||||||||||||||||||||||||
Edit window switching, if you press again during the switching process Delete will close the corresponding selected window | |||||||||||||||||||||||||||||||||||
Smart separated lines | |||||||||||||||||||||||||||||||||||
Go to the end of the file | |||||||||||||||||||||||||||||||||||
Go to the beginning of the file | |||||||||||||||||||||||||||||||||||
Basic code completion, which is occupied by the input method on Windows systems by default, needs to be modified. It is recommended to change it to | Ctrl comma (required)
|
||||||||||||||||||||||||||||||||||
Delete the word or Chinese sentence behind the cursor | |||||||||||||||||||||||||||||||||||
Delete the word or Chinese sentence before the cursor | |||||||||||||||||||||||||||||||||||
Locate the bookmark position of the corresponding value | |||||||||||||||||||||||||||||||||||
on the title of the open file to pop up the file path | |||||||||||||||||||||||||||||||||||
Press Ctrl and don’t let go, the location where the cursor is will be displayed Class information summary | |||||||||||||||||||||||||||||||||||
The cursor jumps to the beginning of the left side of the current word/Chinese sentence | |||||||||||||||||||||||||||||||||||
The cursor jumps to the beginning of the right side of the current word/Chinese sentence | |||||||||||||||||||||||||||||||||||
Equivalent to Mouse wheel forward effect | |||||||||||||||||||||||||||||||||||
Equivalent to mouse wheel backward effect |
Shortcut keys | Introduction |
---|---|
Alt ` | Display the version control common operation menu pop-up layer |
Alt Q | Pop up a prompt to display the declaration/context information of the current class |
Alt F1 | Displays the current file selection target pop-up layer. There are many targets in the pop-up layer for selection |
Alt F2 | For the previous page, display various browsers to open the target selection pop-up layer |
Alt F3 | Select the text, search for the same text one by one, and highlight it |
Alt F7 | Find the place where the method/variable/class where the cursor is located is called |
Alt F8 | In the Debug state, select the object and a debugging box for inputting calculation expressions will pop up to view the debugging results of the input content |
Alt Home | Location/Display Go to the Navigation Bar of the current file
|
IntelliJ IDEA provides quick fix options based on the problem where the cursor is located. The position of the cursor is different. The result of the prompt is also different | (required)
|
The code is automatically generated, such as the set/get method and constructor of the generated object , toString(), etc. | |
Press the left direction to switch the currently opened file view | |
Press the right direction to switch the currently opened file view | |
The current cursor jumps to the front of the current file A method name position | |
The current cursor jumps to the next method name position in the current file | |
Display the tabs corresponding to the values, of which 1 is the most commonly used by Project |
Introduction | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
If there is an external Documents can be connected to external documents | |||||||||||||||||||||||||||||||||||
Jump to the previous highlighted error or warning position | |||||||||||||||||||||||||||||||||||
In search mode, search for the previous | |||||||||||||||||||||||||||||||||||
For the currently open file, open it in a new Windows window and keep the old window | |||||||||||||||||||||||||||||||||||
Rename files/folders | |||||||||||||||||||||||||||||||||||
In Debug mode Next, enter intelligently. There are multiple method calls on the line where the breakpoint is located, which method will pop up to enter | |||||||||||||||||||||||||||||||||||
In Debug mode, pop out, and the effect will be the same as | F9 Same
|
||||||||||||||||||||||||||||||||||
Equivalent to clicking the | Debug button on the toolbar
| ||||||||||||||||||||||||||||||||||
Equivalent to clicking the | Run button on the toolbar
|
||||||||||||||||||||||||||||||||||
pops up the bookmark display layer | |||||||||||||||||||||||||||||||||||
Unindent | |||||||||||||||||||||||||||||||||||
Hide the current or last active Tool window | |||||||||||||||||||||||||||||||||||
Select the cursor to the end of the current line | |||||||||||||||||||||||||||||||||||
Select Move the cursor to the current line head position | |||||||||||||||||||||||||||||||||||
to start a new line. Leave a blank line under the line where the cursor is, and position the cursor at the new line position | |||||||||||||||||||||||||||||||||||
and press this shortcut key on the open file name to close it Currently open file | |||||||||||||||||||||||||||||||||||
Horizontal scroll axis of the current file |
Shortcut keys | Introduction |
---|---|
Ctrl Alt L | Format code, you can use (required) for the current file and the entire package directory
|
Ctrl Alt O | To optimize imported classes, you can use (required) for the current file and the entire package directory
|
Ctrl Alt I | The line where the cursor is located or select Perform automatic code indentation on some parts, somewhat similar to formatting |
Ctrl Alt T | Pop up the surrounding option pop-up layer for the selected code |
Ctrl Alt J | The template selection window pops up and the selected code is added to the dynamic template |
Ctrl Alt H | Calling level |
Ctrl Alt B | Using it on a called method name will jump to the specific implementation, and you can skip the interface |
Ctrl Alt V | Quickly introduce variables |
Ctrl Alt Y | Synchronize and refresh |
Ctrl Alt S | Open IntelliJ IDEA system settings |
Ctrl Alt F7 | Display the place used. Find the place where the class or variable is called, and use the pop-up box to find it |
Ctrl Alt F11 | Switch to full-screen mode |
Ctrl Alt Enter | A blank line is left on the line where the cursor is located, and the cursor is positioned on the new line |
Ctrl Alt Home | Pop up with the current line The file has an associated file popup layer |
Ctrl Alt Space | Class name auto-completion |
Ctrl Alt left arrow key | Return to the previous operation(required)<span style="text-decoration:underline;"><strong>(note the conflict with other software shortcut keys)</strong></span>
|
Ctrl Alt right arrow key | Go to the previous operation(required)<span style="text-decoration:underline;"><strong>(note the conflict with other software shortcut keys)</strong></span>
|
Ctrl Alt forward key | In search mode, jump to the last searched file |
Ctrl Alt back arrow key | In search mode, jump to the next searched file |
Shortcut keys | Introduction |
---|---|
Ctrl Shift F | Search the entire project or files in the specified directory based on the input content (required)
|
Ctrl Shift R | According to the input content Replace the corresponding content, the scope is the entire project or the file in the specified directory (required)
|
Ctrl Shift J | Automatically merge the next line into the current one End of line(required)
|
Undo | (required)
|
Progressively deselect code blocks. You can select the word or paragraph where the cursor is located. Continuous pressing will expand the deselected range based on the original selection | (required)
|
Locate/open the file/directory by file name. To open the directory, you need to add an extra forward slash after the input content | (required)
|
Convert the selected code to uppercase/lowercase in turn | (required)
|
Yes The current class generates a unit test class. If there is already an existing unit test class, you can select it | |
Copy the current file disk path to the clipboard | |
Pop up cached recently copied Content Manager popup layer | |
Show recent Pop-up layer of modified file list | |
Display method hierarchy | |
Jump to the type declaration | |
Quickly view the definition of the method or class where the cursor is located | |
Find action/setting | |
Code block comment | (required) |
Select from the cursor position to its top bracket position | |
Select from the cursor position to its bottom bracket position | |
Expand all codes | |
Collapse all code | |
Highlight all the selected text, press Esc to highlight it | |
In Debug mode, specify breakpoint entry conditions | |
Compile the selected file /Package/Module | |
Editor Maximize | |
Smart code prompt | |
Automatically end the code, automatically add a semicolon at the end of the line | (required)
|
Return to the last modified place | |
Quickly add a bookmark with a specified value | |
On the code file, the cursor jumps to the beginning of the left side of the current word/Chinese sentence, and at the same time Select the word/Chinese sentence | |
On the code file, the cursor jumps to the beginning of the right side of the current word/Chinese sentence, and at the same time Select the word/Chinese sentence | |
When the cursor focus is on the tool tab, reduce the tab area | |
When the cursor focus is on the tool tab, expand the tab area | |
Place the cursor on the method name, move the method to the front of the previous method, and adjust the method sorting | |
Place the cursor on the method name , move the method to the front of the next method, adjust the method sorting |
Introduction | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Select/Add task | ##Alt Shift F | ||||||||||||||||||||||||||||||||||
Alt Shift C | |||||||||||||||||||||||||||||||||||
Alt Shift F | |||||||||||||||||||||||||||||||||||
Alt Shift I | |||||||||||||||||||||||||||||||||||
Alt Shift F7 | |||||||||||||||||||||||||||||||||||
Alt Shift F9 | |||||||||||||||||||||||||||||||||||
Debug |
| Alt Shift F10||||||||||||||||||||||||||||||||||
Run | 's optional menu
| Alt Shift double-click||||||||||||||||||||||||||||||||||
Alt Shift forward arrow key | |||||||||||||||||||||||||||||||||||
Alt Shift back Arrow keys | |||||||||||||||||||||||||||||||||||
Shortcut keys | Introduction |
---|---|
Ctrl Shift Alt V | Paste without format |
Ctrl Shift Alt N | Go to the specified variable/method |
Ctrl Shift Alt S | Open current project settings |
Ctrl Shift Alt C | Copy reference information |
Shortcut keys | Introduction |
---|---|
F2 | Jump to the next highlighted error or warning position (required)
|
F3 | In find mode, Navigate to the next match |
F4 | Edit source |
F7 | In Debug mode , go to the next step. If the current line breakpoint is a method, it will enter the current method body. If the method body has methods, it will not enter the embedded method |
F8 | In Debug mode, enter the next step. If the current line breakpoint is a method, it will not enter the current method body |
F9 | In Debug mode, resume program operation, but if there is a breakpoint in the code below the breakpoint, it will stop at the next breakpoint |
F11 | Add bookmark |
F12 | Return to the previous tool window |
Tab | Indent |
ESC | Enter the code file window from the tool window |
Click Shift twice | PopupSearch Everywhere Pop-up layer |
Recommended tutorial: "Java"
The above is the detailed content of What are the shortcut keys for idea?. For more information, please follow other related articles on the PHP Chinese website!