Zoltán Zoltán - 1 month ago 7
Scala Question

IntelliJ Idea Scala files not available in 'New' context menu

I am new to both IntelliJ and Scala. I am attending the course "Functional Programming Principles in Scala" on Coursera. I downloaded the zip file for the sample assignment, which contained a sample Scala project.

I imported the project successfully (I guess) in IntelliJ. However, when I right-click on a package in the project explorer, there are no Scala-related templates. I can only select "New Java class", XML files and some forms.

Does anyone know why this happens and if there is another way to create a new Scala class or object from a template?

Thanks.

Answer

Import the project by selecting its build.sbt file - not the project folder, not the eclipse project file. Then everything is imported correctly.