IDEA Chapter 6 ---- shortcut keys, idea Chapter 6 ----
Section 1: Resolve shortcut key conflicts
Idea supports many shortcut keys, which causes many shortcut keys to conflict with other applications. Therefore, you need to remove the shortcut keys of other applications. The following uses the input method and QQ as an example.
Qq I left a message and extracted, which is a matter of personal habits.
Section 2: Modify idea shortcuts
Take ctrl + D as an example. This shortcut key is intended to copy the row, but the pasted content starts from the cursor. After modification, it is pasted from the next line.
First, search for the original shortcut key, delete it, And then redefine it.
Section 3: Common shortcut keys
The following is a set of shortcut keys that I think are commonly used and suitable for you. We suggest you sort them out for your convenience.
| Ctrl |
| Ctrl + F |
Search for text in the current file |
| Ctrl + R |
Replace text in the current file |
| Ctrl + Z |
Undo |
| Ctrl + Y |
Delete the row where the cursor is located or delete the selected row |
| Ctrl + X |
Cut the row where the cursor is located or cut the selected content |
| Ctrl + C |
Copy the row where the cursor is located or copy the selected content |
| Ctrl + D |
Copy the row where the cursor is located or copy the selected content, and insert the copied content below the cursor position |
| Ctrl + W |
Progressive selection of code blocks. The word or paragraph where the cursor is located. The selected range is expanded based on the selected words or paragraphs. |
| Ctrl + E |
Display the list of recently opened file records |
| Ctrl + N |
Search for class files based on the input class name |
| Ctrl + P |
Method parameter prompt display |
| Ctrl + U |
Define the method/interface of the parent class of the method where the current cursor is located |
| Ctrl + B |
Enter the interface or definition of the method/variable where the cursor is located, equivalent to Ctrl + left-click |
| Ctrl + K |
To submit a project for version control, you must add this project to version control. |
| Ctrl + T |
To update a version control project, you must add this project to version control. |
| Ctrl ++ |
Expand code |
| Ctrl +- |
Collapse code |
| Ctrl +/ |
The line code where the cursor is located. Different annotations are used according to different file types. |
| Ctrl + F1 |
Display the error message at the error code where the cursor is located |
| Ctrl + F3 |
Transfers to the next reference location of the selected word |
| Ctrl + F4 |
Close the current edited File |
| Ctrl + Tab |
Edit window switch |
| Ctrl + End |
Jump to the end of the file |
| Ctrl + Home |
Jump to File Header |
| Ctrl + Delete |
Delete words or Chinese sentences behind the cursor |
| Ctrl + BackSpace |
Delete the word or Chinese sentence before the cursor |
| Ctrl + 1, 2, 3... 9 |
Locate the corresponding value's bookmarks |
| Ctrl + Left click |
On the title of the opened file, the file path is displayed. |
| Ctrl + forward arrow key |
It is equivalent to the forward effect of the scroll wheel. |
| Ctrl + backward arrow key |
It is equivalent to the backward effect of the scroll wheel. |
| Alt |
| Alt + F1 |
Displays the target pop-up layer for the current file selection. Many targets can be selected in the pop-up layer. |
| Alt + Insert |
The code is automatically generated, such as the set/get method, constructor, and toString () of the generated object. |
| Alt + left arrow key |
Switch the subview in the currently opened window. For example, the Debug window contains a subview such as Output and Debugger. You can use this shortcut to switch to the subview. |
| Alt + right arrow key |
Switch the subview in the window that is currently opened. For example, if the Debug window contains a subview such as Output and Debugger, you can use this shortcut to switch to the subview. |
| Alt + forward arrow key |
The current cursor jumps to the position of the previous method name of the current file. |
| Alt + backward arrow key |
The current cursor jumps to the next method name position of the current file |
| Alt + 1, 2, 3... 9 |
Displays the tabs for the corresponding values. 1 is the most commonly used Project. |
| Shift |
| Shift + Tab |
Unindent |
| Shift + End |
Select the cursor to the end of the current row |
| Shift + Home |
Select the cursor to the current line header position |
| Shift + Enter |
Start a new row. The cursor is located at the bottom of the row, and the cursor is positioned at the position of the new row. |
| Shift + F9 |
This is equivalent to clicking the Debug button on the toolbar. |
| Shift + F10 |
It is equivalent to clicking the Run button on the toolbar. |
| Shift + Left click |
Click this shortcut on the opened file name to close the current opened file |
| Shift + scroll wheel |
Horizontal scroll of the current file |
| Ctrl + Alt |
| Ctrl + Alt + L |
Format the code, which can be used for the current file and the entire package directory. |
| Ctrl + Alt + O |
Optimized the imported class and can be used for the current file and the entire package directory. |
| Ctrl + Alt + T |
Pop-up dialog box for the selected code |
| Ctrl + Alt + B |
When you use a method name for a call, it will jump to the specific implementation. you can skip the interface. |
| Ctrl + Alt + S |
Enable IntelliJ IDEA system settings |
| Ctrl + Alt + Enter |
The cursor is located on the row with a blank line, and the cursor is positioned on the new line. |
| Ctrl + Alt + left arrow key |
Return to the previous operation |
| Ctrl + Alt + right arrow key |
Move forward to the previous operation |
| Ctrl + Shift |
| Ctrl + Shift + F |
Search for files in the entire project or specified directory based on the input content |
| Ctrl + Shift + R |
Replace the corresponding content according to the input content. The range is the entire project or files in the specified directory. |
| Ctrl + Shift + Z |
Cancel |
| Ctrl + Shift + U |
Converts the selected code in turn in uppercase or lowercase. |
| Ctrl + Shift + C |
Copy the current file disk path to the clipboard |
| Ctrl + Shift + B |
Jump to type declaration |
| Ctrl + Shift +/ |
Code block comments (required) |
| Ctrl + Shift ++ |
Show all codes |
| Ctrl + Shift +- |
Collapse all codes |
| Ctrl + Shift + Backspace |
Return to the last modification |
| 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 + rear direction key |
Place the cursor over the method name, move the method to the front of the next method, and adjust the method sorting. |
| Alt + Shift |
| Alt + Shift + left-click |
Select the double-click word/Chinese sentence, and press and hold it down. You can select other words/Chinese sentences at the same time. |
| Alt + Shift + forward arrow key |
Move the cursor row up |
| Alt + Shift + back direction key |
Move the row of the cursor downward |
| Ctrl + Shift + Alt |
| Ctrl + Shift + Alt + V |
Unformatted Paste |
| Ctrl + Shift + Alt + S |
Open Current Project Settings |
| Others |
| Tab |
Indent |
| ESC |
Enter the code file window from the tool window |
| Debug |
| F7 |
Go to the next step. If the current row breakpoint is a method, it will enter the current method body. If the method body has a method, it will not enter the embedded method. |
| F8 |
Go to the next step. If the current row breakpoint is a method, do not enter the current method body. |
| F9 |
Resume the program running, but if the code below this breakpoint has a breakpoint, it will be stopped on the next breakpoint |
| Alt + F8 |
Select an object and enter the computing expression debugging box to view the debugging results of the input content. |