Create a new class

Create a new class and a new package.

In the Project tool window, use the shortcut ⌘N (macOS) / Alt+Ins (Windows/Linux) to generate a new class. In the New Java Class popup, type the name of the class you want to create. You can type the fully qualified name here, to generate a new package containing your new class.


Related Resources

JShell
JShell
Use JShell in IntelliJ IDEA to quickly evaluate Java expressions.
Endpoints tool window
Endpoints tool window
Work with endpoints to your application in a dedicated tool window.
Fix all in file
Fix all in file
Fix all occurrences of the same problem in the file.