I need main() method generation
Answered
I created new project, new class (Main.java) and must write "
public static void main(String[] args){}
"
It will be good if will possible generation main method by IDE.
Please sign in to leave a comment.
Type psvm and press Tab, see https://www.jetbrains.com/help/idea/2016.3/live-templates.html.
This does not work. IntelliJ 2019.3. I get something like Upsert instead
Please share the screenshot of the issue. What file type do you use? Note that for Java you can now also type main instead of psvm.
I was in JShell, so .snippet file?
Live templates do not work in JShell. Normally you don't even have a class there and you just run any statement, so you don't need a class or a main method in JShell.
Ah, good to know, thanks!