Quick generation of main

Input PSVM



Generate system.out.print quickly

Use the sout



3. File preservation

IDEA is saved automatically without Ctrl + S.

Delete a row

Ctrl+Y



5. Add, Create, add shortcut keys

Alt + lnsert

Switch Java programs

Alt + right arrow or Alt + left arrow

7. Directory display and close

Ctrl + Fn + F12

Run eight.

Ctrl + Shift + F10

9. Prompt method parameters

Ctrl + p

Switch Windows

Alt + (number)



We can mouse over the window button to see the number of shortcut keys.

Xi. Search

shortcuts introduce
Ctrl + F Find in the current file
Shift + Ctrl + F Find in the current project
Shift + Shift Quickly find
Ctrl + N Look for the Class
Ctrl + Shift + N Find files
Ctrl + Shift + Alt + N Find Symbol(method name)

Xii. Jump switch

shortcuts introduce
Ctrl + E Recent documents
Ctrl + Tab Switch files
Ctrl + Alt + ARROW key Jump to the location of the historical cursor
Ctrl + G Jump specifies the line number

Finally, you can also customize or modify the shortcut keys, File – >Settings – >Keymap

13. Editing related

shortcuts introduce
Ctrl + W Rapid selected
Alt + up and down arrow keys Method Fast jump
Ctrl + Alt + Enter Inserts a line before the current line
Shift + Enter Inserts a row after the current row

Read the source code

shortcuts introduce
Ctrl + P Method parameter prompt
Ctrl + Shift + left and right arrow keys Move the window divider
Ctrl + H Class hierarchy

Supplement:

shortcuts introduce
F2 Quickly locate the file error location
Ctrl+E Recent documents
Ctrl+Alt+Enter Inserts a line before the current line
Shift+Enter Add a line below the current line
Ctrl+Alt+O Automatically deletes unused imports
Ctrl+Alt+T Quick code block try catch and so on
Alt+ mouse select Column selection mode, select by column
Alt+7 Lists all methods for the current column
Ctrl+Alt+V Extract code that extracts the method parameters as variables, and then the method call passes in the newly generated variables
Ctrl+Alt+P Extract the content into the parameters of the method
Ctrl+Alt+C Extract the content into constants
Ctrl+Alt+M Extract method that extracts the selected code into a method
Ctrl+W Select the word, line, block, and so on where the cursor is
Ctrl + Alt + left The cursor returns to the last edit position

PS: If you think my share is good, you are welcome to like it and look at it.

From: blog.csdn.net/weixin_45965358/article/details/116173466