Intellij IDEA – default static void main shortcut

In IDEA, you can type psvm and press Tab to generate the public static void main(String[] args) automatically.

To show all shortcuts, press CTRL + J

References

  1. Intellij IDEA – Code completion
  2. Intellij IDEA – System.out.println shortcut

6 comments on “Intellij IDEA – default static void main shortcut

  1. from intellij type , psvma to get main method with arguments in Kotlin

    Reply
  2. type main then enter, can get public static void main(String[] args) as well

    Reply
  3. hi! Is there a way to create my own shortcut for my own template? For example:

    psvx + tab == >

    public static void someMethod(){

    }

    or
    da + tab ==>
    double doubleVal = 12345d;

    Reply
  4. This is really awesome! The best tutorial I’ve ever seen!

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *