IntelliJ file new move Java Class on top

60 Views Asked by At

When I do a file new in my IntelliJ idea. I see a menu like this one

enter image description here

I want to see classes from Java and Scala on the top. I don't want to uninstall plugins for ruby etc. But these should not be on the top. I mostly code in java and scala and therefore want these classes to be one top.

2

There are 2 best solutions below

0
On

Please ensure that the directory you're creating a class in is under a module source root. You can navigate to it in Project View, right-click on it or any its parent and choose Mark As... | Source Root

0
On

When I want to create a new Java class, I activate the "Project" view. Then I select the package to which the new class shall belong to. Then press Alt+Insert. This popup menu is shown:

enter image description here