Home  >  Article  >  Java  >  The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.

The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.

Java学习指南
Java学习指南forward
2023-07-26 14:30:251470browse

1. Quickly generate main


##Input psvm

The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.
The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.

2. Quickly generate System.out.print

Use sout

The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.
The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.

3. File Saving

IDEA saves automatically and does not require us to Ctrl S to save.

4. Delete a line

Ctrl Y

The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.
The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.

5. New, new, added shortcut keys

Alt lnsert

The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.

6. Switch java program

Alt right arrow or Alt left arrow

7. Directory display and closing

Ctrl Fn F12
The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.

The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.

Eight. Run

Ctrl Shift F10

9. Prompt method parameters

Ctrl p

The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.

10. Switch windows

Alt (number)

The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.
We can place the mouse on the window button to view the shortcut key numbers.


Eleven. Search

##Ctrl FCurrent Find in filesShift Ctrl FFind in current projectShift ShiftQuick search Ctrl NFind Class
Shortcut keysIntroduction
Ctrl Shift NFind file
Ctrl Shift Alt NFind Symbol (method name)


12. Jump switch

##Ctrl ERecently FileCtrl TabSwitch fileCtrl Alt arrow keyJump to the history cursor location AtCtrl GJump to the specified line number

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


Thirteen. Edit related

Shortcut keysIntroduction
##Ctrl W Quickly selectAlt Up and down arrow keysMethod to jump quicklyCtrl Alt EnterIn Insert a line before the current lineShift EnterInsert a line after the current line


Fourteen. Read the source code

Shortcut keysIntroduction
##Ctrl P Method parameter promptCtrl Shift left and right arrow keysMove window dividing lineCtrl HHierarchical relationship of classes


Supplement:

Shortcut keysIntroduction
##Ctrl W Select the word, line, block, etc. where the cursor is locatedCtrl Alt LeftThe cursor returns to the last editing position
Shortcut keysIntroduction
F2Quickly locate the file error location
Ctrl ERecent file
Ctrl Alt Enter

Insert a line before the current line

Shift EnterAdd a line below the current line
Ctrl Alt OAutomatically delete unused lines Used import
Ctrl Alt TShortcut code block try catch etc.
Alt mouse selectionColumn selection mode, select by column
Alt 7List all methods of the current column
Ctrl Alt V

Extract the code, extract the method parameters as variables,

Then the method call passes in the newly generated variables

Ctrl Alt PExtract the content into the parameters of the method
Ctrl Alt CWill Extract the content into a constant
Ctrl Alt MExtraction method, extract the selected code into the method


The above is the detailed content of The summary of IDEA's various shortcut keys is very complete, but I dare not say it is the most comprehensive.. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:Java学习指南. If there is any infringement, please contact admin@php.cn delete