By   September 1, 2018

IntelliJ – Add New Scala Class Option – Not Available

You might get into this problem every time a new Scala project is created. By default, the support of Scala is not available. So when you right click your src folder to add Scala Class, you might be disappointed to see no option for adding a new Scala class is available.

Screen Shot 2018-09-01 at 5.00.33 PM

This can be resolved by following the following simple steps. Just right click your project and select Add Framework Support from the context menu shown.

Screen Shot 2018-09-01 at 5.00.00 PM

If you have Scala plugin installed, you should see the option for Scala available. Select the option and hit OK.

Screen Shot 2018-09-01 at 5.00.11 PM

You also might need to mark src folder as Source root.

Screen Shot 2018-09-01 at 5.04.47 PM

Now the option should be available to add a new Scala class.

Screen Shot 2018-09-01 at 5.05.00 PM