Home >Java >javaTutorial >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:251695browse

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 keys Introduction
Ctrl Shift N Find file
Ctrl Shift Alt N Find 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 keys Introduction
##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 keys Introduction
##Ctrl P Method parameter promptCtrl Shift left and right arrow keysMove window dividing lineCtrl HHierarchical relationship of classes


Supplement:

Shortcut keys Introduction
##Ctrl W Select the word, line, block, etc. where the cursor is locatedCtrl Alt LeftThe cursor returns to the last editing position
Shortcut keys Introduction
F2 Quickly locate the file error location
Ctrl E Recent file
Ctrl Alt Enter

Insert a line before the current line

Shift Enter Add a line below the current line
Ctrl Alt O Automatically delete unused lines Used import
Ctrl Alt T Shortcut code block try catch etc.
Alt mouse selection Column selection mode, select by column
Alt 7 List 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 P Extract the content into the parameters of the method
Ctrl Alt C Will Extract the content into a constant
Ctrl Alt M Extraction 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