Commonly used shortcut keys for IDEA

Alt+Enter Import package, automatically correct
Ctrl+N Find class
Ctrl+Shift+N Find file
Ctrl+Alt+L Format code
Ctrl+Alt+O Optimize imported class and package
Alt+Insert Generate 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 Autocomplete Code
Ctrl+Space Code Hint
Ctrl+Alt+Space Class Name or Interface Name prompt
Ctrl+P Method parameter prompt
Ctrl+Shift+Alt+N Find the method or variable in the class
Alt+Shift+C Compare the recently modified code

Shift+F6 Refactor - Rename
Ctrl+X Delete Line
Ctrl+D Duplicate Line
Ctrl+/ or Ctrl+Shift+/ Comment (// or /.../)
Ctrl+J Autocode
Ctrl+E Recently Opened Files
Ctrl+H Display Class structure diagram
Ctrl+Q Display comment documents
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 location
Alt+ left/right Switch code view
Alt+ Up/Down In the method Quickly move between positioning
Ctrl+Shift+Up/Down Code to move up/down.
F2 or Shift+F2 highlight errors or warnings for quick positioning

After the code label is entered, press Tab to generate the code.
Select the text, press Ctrl+Shift+F7 to highlight all the text, and press Esc to disappear the highlight.
Ctrl+W Select the code, press continuously to have other effects
Select the text, press Alt+F3 to find the same text one by one, and highlight it.
Ctrl+Up/Down cursor jumps to the first or last line
Ctrl+B quickly opens the class or method at the cursor

The above can be set by yourself. . .

Supongo que te gusta

Origin blog.csdn.net/weixin_46048259/article/details/127773053
Recomendado
Clasificación