Monday, October 26, 2015

IntelliJ IDEA Tricks

Had decided to go with IntelliJ after 10 years Eclipse. Certainly it is a great IDE as it blew aways Eclipse on setting up Scala development. I will include tricks and shortcut I learn along the way down below.

Change default Java class file header

IntelliJ comes with default header. Put the cursor in the javadoc header, press Option+Enter on Mac to change it to your preferred header.

/** * Created by hkou on 10/23/15. */

Create unit test

Put the cursor in file header section, then press Option+Enter, one menu option is to create test. IntelliJ offers a comprehensive list of test such as Goovy JUnit, Spock, Junit, TestNG, ScalaTest.


No comments: