

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.When creating a new class, we can type the whole package path, separated by dots, followed by the class name, and IntelliJ IDEA will create the package and the Java file.To create a new class, press ⌘N on MacOS or Alt+Insert on Windows or Linux on the directory in the Project Window, and select “Java class”.Some top tips, shortcuts and features from this video: Once you’ve installed IntelliJ IDEA, you can watch the video and follow the tutorial steps together. Remember, IntelliJ IDEA Community is open source and completely free to use, and contains all the functionality you need to get started as a Java developer. Before you get started, you will need to download and install IntelliJ IDEA. This video is based off the existing Create your first Java application tutorial. (If you’re an experienced developer, show students, juniors, friends and family this tutorial to get them started). 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.
