Intellij Shortcuts

Basic code hints

1. Ctrl+Space code prompt

2. Ctrl+Shift+Space prompts according to the type information

3.F2 (Shift+F2) moves to the code block with errors

4.Alt+Enter auto supplement

5. Ctrl+Shtf+Enter automatically completes parentheses

 

 

Refactor:

1. Ctrl + Shitf + Alt + T to rebuild the menu

2.Shift+F6 rename

3. Ctrl+Alt+V to extract variables

 

 

Code generation:

1. sout+Tab, fori+Tab, psvm+Tab automatically generate loop, System.out, main method

2. Ctrl+J to view all shortcut templates

3. Ctrl+Insert generates all constructors, toString, get/set, overriding methods, etc.

4. In 13+version

user.for+Tab--->for(User user : users)

user.getAge().var+Tab--->int age = user.getAge()

 

 

edit:

1. Ctrl+W successively selects the code block in depth, Ctrl+Shift+W reverses the selected code block successively

2. Ctrl+<- moves the cursor to the front of the word, Ctrl+-> but after

3. Ctrl+[ move the cursor to the head of the code block, Ctrl+] after the code block

4. Ctrl+Shift+[ / ] Select at the same time, Ctrl+Shift+-> / <-

5.Ctrl+Shift+up / down to move the code block up and down

6. Ctrl + Shift + T to create a test case for the selected method

7. Ctrl+Shift+E Recently edited file Ctrl+E Recently opened file

8.Ctrl+Shift+V Copy history copy list

 

 

Label:

1. Ctrl+Shift+Num defines the Num (1-9) label, and deletes it again

2.Ctrl+Num jump to the defined label

3. Ctrl+Tab to switch the open class window page

4. Alt+Num to switch IDE windows (Alt+1 project structure, Alt+3 search result, Alt+4/5 to run and debug)

 

 

Find:

1.Shift+Shift search everywhere, class resource configuration method keywords, etc.

2.Ctrl+H class hierarchy window

3.Ctrl+B parent method definition, Ctrl+Shift+B subclass self-method implementation

4. Ctrl+F12 to view the list of all methods of the current class

5. Use of Alt+F7 class or method

6. Ctrl+F, Ctrl+Shift+F Search keywords in the current class/project; F3 next occurrence location/previous time

 

 

format:

1. Ctrl+Alt+O format import

2. Ctrl+Shift+L format code

 

run:

1. Alt+Shift+F10 to run

2.Shift+F9 to start the test

3.F7 step into / F8 step over / F9 continue

 

 

shortcut help

1. Ctrl + Shift + A shortcut help key

2. Alt+Delete safely deletes all variable references

3. Alt+Shift+Insert column mode selection

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326581542&siteId=291194637
Recommended