IntelliJ — Where is the “New Class” Button?
Oct 12, 2021
You have created a new project or opened an existing project…
You want to create a new Kotlin or Java class…
You right-click on a package as always…
However, there is no “New Java Class” or “New Kotlin Class” option…
Let’s Fix This
- Go to root package/folder of your project.
- Right-click on it.
- Select “Mark Directory as” → “Sources Root”
- Now, you can create a new classes as you want.
Have a great day 👋