Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the option to create a new Scala Worksheet in IntelliJ?

I am using Kubuntu 14.4, I have Scala 2.9.2 installed and IntelliJ 2016.1 with the Scala plugin in version 3.0.2. When I create a new Scala project (not sbt project) and then right-click on src and then new, I expect the option to create a new Scala worksheet. However, I don't get that option. What do I need to do, to get the option?

PS: In fact I don't get any option related to creating Scala-something.

enter image description here

like image 967
Make42 Avatar asked Apr 26 '16 13:04

Make42


People also ask

How do I create a Scala worksheet in IntelliJ?

Right-click your project and select New|Scala Worksheet. We recommend that you create an . sc file in the src directory to avoid problems with code highlighting. In the New Scala Worksheet window, type the name of the file and click OK.

How do I enable Scala in IntelliJ?

To install Scala plugin, press Ctrl+Alt+S , open the Plugins page, browse repositories to locate the Scala plugin, click Install and restart IntelliJ IDEA. Now you can successfully check out from VCS, create, or import Scala projects.

How do I create a Scala code in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Build Tools | sbt. In the sbt projects section, select a project for which you want to configure build actions. In the sbt shell section, select the builds option. Click OK to save the changes.


1 Answers

Framework Support needs to be added to the project:

  1. Right click on the project and choose Add Framework Support...
  2. Click on Scala and set the settings.
like image 171
Make42 Avatar answered Nov 06 '22 00:11

Make42