IntelliJ creates the main function shortcut

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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325810335&siteId=291194637