IntelliJ IDEA – public static void main shortcut


In IntelliJ IDEA, type main and press the Enter or Tab button from your keyboard to generate public static void main( String[] args ) automatically.

P.S. Tested with IntelliJ IDEA 2019.3.3 (Community Edition) on Windows machine.

IntelliJ IDEA - public static void main shortcut

Alternatively, we can also use the psvm to populate public static void main( String[] args ) automatically.

IntelliJ IDEA - public static void main shortcut

Tip: If autosuggestion not populated automatically by typing the shortcut key, you may search the possible suggestion by pressing Ctrl + Space button together.


Similar Posts

About the Author

Atul Rai
I love sharing my experiments and ideas with everyone by writing articles on the latest technological trends. Read all published posts by Atul Rai.