0

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.

Knows Not Much
  • 30,395
  • 60
  • 197
  • 373

2 Answers2

0

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

JimHawkins
  • 4,843
  • 8
  • 35
  • 55
0

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

Peter Gromov
  • 17,615
  • 7
  • 49
  • 35