IDEA shortcut key operation & daily use

1. Automatically generate and complete variable name: Ctrl+Alt+V
Insert picture description here

Insert picture description here
2. Automatically add annotations to classes and methods
File–>Settings–>Editor–>File and Code Templates
Method 1:
Insert picture description here
Method 2:
Insert picture description here
3. Automatically generate parameter descriptions for class
methods. Type /** on the line that defines the method and then return Car, you can automatically generate method annotations

4. Generate constructor: Alt + insert
Insert picture description here

No-parameter Constructor
Insert picture description here
There is a parameterized constructor
Insert picture description here
5. Method rewriting: Ctrl + O
Insert picture description here

Guess you like

Origin blog.csdn.net/pha1012/article/details/114140413