Create New Class

Quickly add new classes to your project.

Press ⌘1 (macOS) / Alt+1 (Windows/Linux), to open the Project Window and then use ⌘N (macOS) / Alt+Insert (Windows/Linux), to generate a new file.

These same shortcuts will help you in many places where you need to generate code, such as constructors, getters and setters, toString methods and adding arguments to methods when you need to refactor.


Related Resources

Create an Editor Fold
Create an Editor Fold
Create an editor fold to hide parts of your class which can make it more readable.
Generate Overrides for equals(), hashCode() and toString()
Generate Overrides for equals(), hashCode() and toString()
We can generate the code to override the equals and hashCode methods.
Surround With
Surround With
Surround your code with common programming constructs.