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.
Ctrl
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)
|
##Ctrl X | Cut the line where the cursor is or Cut the selected content |
Ctrl C | Copy the line where the cursor is or copy the selected content |
Ctrl D | Copy the line where the cursor is or copy the selected content, and insert the copied content below the cursor position (required)
|
Ctrl W | 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)
|
Ctrl E | Display a list of recently opened file records |
Ctrl N | Search for class files based on the entered class name
|
Ctrl G | Jump to the specified line in the current file |
Ctrl J | Insert a custom dynamic code template |
Ctrl P | Method parameter prompt display |
Ctrl Q | 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 |
Ctrl U | Go to the method/interface definition of the parent class of the method where the current cursor is located |
Ctrl B | Enter the interface or define the method/variable where the cursor is located, which is equivalent to Ctrl left-click
|
Ctrl K | Version control submission project, this project needs to be added to version control before it can be used |
Ctrl T | Version control update project, this project needs to be added to version control before it can be used |
Ctrl H | Display the hierarchy of the current class |
Ctrl O | Select an overridable method |
Ctrl I | Select an inheritable method |
Ctrl | Expand code |
Ctrl - | Collapse code |
Ctrl / | Comment the line of code where the cursor is, different comment symbols will be used according to the current file type (required)
|
Ctrl [ | Move the cursor to the beginning of the curly braces of the current code |
Ctrl ] | Move the cursor to the end of the curly braces of the current code |
Ctrl F1 | Display error message in the error code where the cursor is located |
Ctrl F3 | Redirect to the selected The next reference position of the word |
Ctrl F4 | Close the current editing file |
Ctrl F8 | In Debug mode, set the current breakpoint of the cursor. If it is already a breakpoint, remove the breakpoint |
Ctrl F9 | Execute Make Project operation |
Ctrl F11 | Select files/folders and use mnemonics to set/cancel bookmarks |
Ctrl F12 | Pop up the current file structure layer, you can input directly on the pop-up layer for filtering |
Ctrl Tab | Edit window switching, if you press again during the switching process Delete will close the corresponding selected window |
Ctrl Enter | Smart separated lines |
Ctrl End | Go to the end of the file |
Ctrl Home | Go to the beginning of the file |
Ctrl Space | 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)
|
Ctrl Delete | Delete the word or Chinese sentence behind the cursor |
Ctrl BackSpace | Delete the word or Chinese sentence before the cursor |
Ctrl 1,2,3...9 | Locate the bookmark position of the corresponding value |
Ctrl left click Click | on the title of the open file to pop up the file path |
Ctrl Cursor positioning | Press Ctrl and don’t let go, the location where the cursor is will be displayed Class information summary |
Ctrl left arrow key | The cursor jumps to the beginning of the left side of the current word/Chinese sentence |
Ctrl Right Arrow Key | The cursor jumps to the beginning of the right side of the current word/Chinese sentence |
Ctrl Forward Arrow Key | Equivalent to Mouse wheel forward effect |
Ctrl backward direction key | Equivalent to mouse wheel backward effect |
Alt
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
|
##Alt Enter | 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)
|
Alt Insert | The code is automatically generated, such as the set/get method and constructor of the generated object , toString(), etc. |
Alt left direction key | Press the left direction to switch the currently opened file view |
Alt Right direction key | Press the right direction to switch the currently opened file view |
Alt Forward direction key | The current cursor jumps to the front of the current file A method name position |
Alt back arrow key | The current cursor jumps to the next method name position in the current file |
Alt 1,2,3...9 | Display the tabs corresponding to the values, of which 1 is the most commonly used by Project |
Shift
Shortcut keys | Introduction |
##Shift F1
If there is an external Documents can be connected to external documents |
|
Shift F2
Jump to the previous highlighted error or warning position |
|
Shift F3
In search mode, search for the previous |
|
Shift F4
For the currently open file, open it in a new Windows window and keep the old window |
|
Shift F6
Rename files/folders |
|
Shift F7
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 |
|
Shift F8
In Debug mode, pop out, and the effect will be the same as | F9 Same
|
Shift F9
Equivalent to clicking the | Debug button on the toolbar
|
Shift F10
Equivalent to clicking the | Run button on the toolbar
|
Shift F11
pops up the bookmark display layer |
|
Shift Tab
Unindent |
|
Shift ESC
Hide the current or last active Tool window |
|
Shift End
Select the cursor to the end of the current line |
|
Shift Home
Select Move the cursor to the current line head position |
|
Shift Enter
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 |
|
Shift Left-click
and press this shortcut key on the open file name to close it Currently open file |
|
Shift wheel scrolls forward and backward
Horizontal scroll axis of the current file |
|
Ctrl Alt
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 |
Ctrl Shift
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)
|
##Ctrl Shift Z | Undo(required)
|
Ctrl Shift W | 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)
|
Ctrl Shift N | 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)
|
##Ctrl Shift U
Convert the selected code to uppercase/lowercase in turn | (required)
|
Ctrl Shift T
Yes The current class generates a unit test class. If there is already an existing unit test class, you can select it |
|
Ctrl Shift C
Copy the current file disk path to the clipboard |
|
Ctrl Shift V
Pop up cached recently copied Content Manager popup layer |
|
Ctrl Shift E
Show recent Pop-up layer of modified file list |
|
Ctrl Shift H
Display method hierarchy |
|
Ctrl Shift B
Jump to the type declaration |
|
Ctrl Shift I
Quickly view the definition of the method or class where the cursor is located |
|
Ctrl Shift A
Find action/setting |
|
Ctrl Shift /
Code block comment | (required) |
Ctrl Shift [
Select from the cursor position to its top bracket position |
|
Ctrl Shift ]
Select from the cursor position to its bottom bracket position |
|
Ctrl Shift
Expand all codes |
|
Ctrl Shift -
Collapse all code |
|
Ctrl Shift F7
Highlight all the selected text, press Esc to highlight it |
|
Ctrl Shift F8
In Debug mode, specify breakpoint entry conditions |
|
Ctrl Shift F9
Compile the selected file /Package/Module |
|
Ctrl Shift F12
Editor Maximize |
|
Ctrl Shift Space
Smart code prompt |
|
Ctrl Shift Enter
Automatically end the code, automatically add a semicolon at the end of the line | (required)
|
Ctrl Shift Backspace
Return to the last modified place |
|
Ctrl Shift 1,2,3...9
Quickly add a bookmark with a specified value |
|
Ctrl Shift left arrow key
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 |
|
Ctrl Shift right arrow key
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 |
|
Ctrl Shift left arrow key
When the cursor focus is on the tool tab, reduce the tab area |
|
Ctrl Shift Right Arrow Key
When the cursor focus is on the tool tab, expand the tab area |
|
Ctrl Shift Forward Arrow Key Place the cursor on the method name, move the method to the front of the previous method, and adjust the method sorting |
|
Ctrl Shift and back arrow keys
Place the cursor on the method name , move the method to the front of the next method, adjust the method sorting |
|
Alt Shift
Shortcut keys
Introduction |
|
Alt Shift N
Select/Add task |
| ##Alt Shift F
Display the pop-up layer added to favorites |
| Alt Shift C
View the change list of recently operated items |
| Alt Shift F
Add to Favorites |
| Alt Shift I
View the current file of the project |
| Alt Shift F7
In Debug mode, the next step is to enter the current method body. If the method body has methods, it will enter the embedded method, and then loop into |
| Alt Shift F9
Pop up the optional menu of Debug |
| Alt Shift F10
Pop up Run | 's optional menu
| Alt Shift double-click
to select the double-clicked word/Chinese sentence. Press and hold to select both words and sentences. Select other words/Chinese sentences |
| Alt Shift forward arrow key
Move the line where the cursor is to move up |
| Alt Shift back Arrow keys
Move the line where the cursor is located to move down |
|
Ctrl Shift Alt
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 |
Others
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!