Today, I stumbled upon the shortcut keys for creating the main function in IntelliJ, followed by the for loop, System.out.println();
When writing code, directly enter psv and you will see a psvm prompt. At this time, click the tab key and a main method is written.
psvm is the initials of public static void main.
In turn, typing for in the body of the method will have a fori prompt, select it and then press the tab key to automatically create a for loop.
How to write a System.out.println(); that is sout
Knowing this rule, there should be many similar usages.
More prompts can be viewed by CTRL + j, and command + j under mac system.