

Go to the Run Window with ⌘4, or Alt+4 on Windows or Linux.(that’s a period/full stop) when a code completion item is highlighted, IntelliJ IDEA will complete our code with the selected item and place a dot after it. Pressing Esc will always close a dropdown or dialog without making changes.Use ⌘J, or Ctrl+J in Windows or Linux, to see a list of all live templates that are valid for the current context. Live templates save us a lot of typing.IntelliJ IDEA will generate a public static void main method for us with the correct parameters. To create a standard Java main method, we can simply type “main”.This will put us onto the next line in the correct position and won’t break the previous line the caret was on. Move onto the next line in a class file by pressing Shift+Enter.


If you are one of them, this tutorial is for you. Most readers of the IntelliJ IDEA blog are long past writing “Hello World” applications, but there are plenty of people who haven’t yet taken that first step to writing a Java program.
