1. Introduction to IDEA software
2. Use frequently used shortcut keys
- psvm generates main method
- sout generate System.out.pringln("");
- ctrl+shift+carriage return line feed
- ctrl+shift+a Action panel
- Enter, setter, select Getter and Setter in the action panel to automatically generate get, set methods
- In the action panel, enter, constructor, and select constructor to automatically generate a constructor (select None to indicate a no-argument constructor)
- Enter in the action panel, toString, select toString to override the toString() method
3. Common shortcut keys for code editing
4. Common shortcut keys for running and debugging
5. Other commonly used shortcut keys
6. Customize shortcut keys
There are many Actions in Editor Actions. Select the Action you need to modify the key position,
right-click the Action, select Add keyboard Shortcut
, enter the corresponding key position, and click OK to complete the setting.
7.Live Template
Customize Live Template:
For example, input for2 is used to output two for loops
for(int $INDEX$ = 0; $INDEX$ < $LIMIT$; $INDEX$++){
`
`for(int $INDEX$ = 0; $INDEX$ < $LIMIT$; $INDEX$++){
`
`$End$`
`}`
`}
Choose when to take effect:
have a test: