Unable to create Scala class on IntelliJ

Saurav Sircar picture Saurav Sircar · Jun 24, 2016 · Viewed 62.9k times · Source

I'm just starting to learn Scala. I have installed the Scala plugin for IntelliJ, and created a new Scala project. But when I right-click on the src folder to make a new Scala class, there is no option to do so. Am I missing something?

Answer

Majico picture Majico · Oct 12, 2016

Right click on your project, "Add Framework support" and choose Scala framework, then by right click on the packages you can create Scala Class.

After this, right click on src > Mark directory as > Sources Root.

Doing both of these should fix your problem!