Idea commonly used shortcut keys and Intellij IDEA most commonly used shortcut keys Daquan

Idea commonly used shortcut keys

Alt+Enter to import the package, automatic correction

Ctrl+N find class

Ctrl+Shift+N find file

Ctrl+Alt+L format code

Ctrl+Alt+O optimize imported classes and packages

Alt+Insert generates code (such as get, set method, constructor, etc.)

Ctrl+E or Alt+Shift+C recently changed code

Ctrl+R replace text

Ctrl+F find text

Ctrl+Shift+Space auto-completion code

Ctrl+space code hint

Ctrl+Alt+Space class name or interface name prompt

Ctrl+P method parameter prompt

Ctrl+Shift+Alt+N find methods or variables in the class

Alt+Shift+C compare recently modified code

Shift+F6 Refactor-Rename

Ctrl+Shift+up arrow

Ctrl+X delete line

Ctrl+D copy line

Ctrl+/ or Ctrl+Shift+/ comment (// or / /)

Ctrl+J automatic code

Ctrl+E Recently opened files

Ctrl+H Display class structure diagram

Ctrl+Q show annotation document

Alt+F1 Find the location of the code

Alt+1 quickly open or hide the project panel

Ctrl+Alt+ left/right Return to the last browsed position

Alt+ left/right switch code view

Alt+ Up/Down to quickly move positioning between methods

Ctrl+Shift+Up/Down code moves up/down.

F2 or Shift+F2 to highlight errors or warnings and quickly locate

After entering the code label, press Tab to generate the code.

Select the text, press Ctrl+Shift+F7 to highlight all the text, and press Esc to highlight it and disappear.

Ctrl+W select the code, continuous pressing will have other effects

Select the text and press Alt+F3 to find the same text one by one and highlight it.

Ctrl+Up/Down cursor jump to the first or last line

Ctrl+B quickly open the class or method at the cursor

Intellij IDEA most commonly used shortcut keys

1. Ctrl+E, you can display the list of recently edited files

2. Shift+Click can close the file

3. Ctrl+[or] can jump to the beginning and end of braces

4. Ctrl+Shift+Backspace can jump to the last edited place

5. Ctrl + F12, can display the structure of the current file

6. Ctrl+F7 can query the reference of the current element in the current file, and then press F3 to select

7. Ctrl+N, you can quickly open the class

8. Ctrl + Shift + N, you can quickly open the file

9.Alt+Q can see the declaration of the current method

10. Ctrl+W can select words and then sentences and then lines and functions

11.Alt+F1 can position the editing element in each panel

12. Ctrl+P, can display parameter information

13. Ctrl+Shift+Insert can select the clipboard content and insert

14.Alt+Insert can generate constructor/Getter/Setter etc.

15. Ctrl+Alt+V can introduce variables. For example, assign the SQL in parentheses to a variable

16. Ctrl+Alt+T can pack the code in one piece, such as try/catch

17. Alt+Up and Alt+Down can move quickly between methods

Guess you like

Origin blog.csdn.net/m0_51684972/article/details/113186625