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?
相关问题
- Unusual use of the new keyword
- What uses more memory in c++? An 2 ints or 2 funct
- Get Runtime Type picked by implicit evidence
- How Does WebSphere Choose the Classloading Order i
- What's the point of nonfinal singleton objects
相关文章
- Gatling拓展插件开发,check(bodyString.saveAs("key"))怎么实现
- RDF libraries for Scala [closed]
- In IntelliJ IDEA, how can I create a key binding t
- Why is my Dispatching on Actors scaled down in Akk
- IntelliJ IDEA can't open projects or add SDK o
- How do you run cucumber with Scala 2.11 and sbt 0.
- GRPC: make high-throughput client in Java/Scala
- NameError: name 'self' is not defined, eve
In IDEA 2016.2.5
From a new SBT or Scala project.
Sadly just adding this to your build.SBT does not impact the IDE behavior.
Right Click on the
SrcScala folder :)I just had this issue, also. It turned out that IntelliJ hadn't marked my
src/main/scala
folder as a "source" folder.To do this:
Project Structure -> Modules ->
right click folder andMark as "Source"
(blue)Similarly the
src/main/test
folder wasn't marked as a test folder. I was able to add scala classes after those folders were appropriately marked.I had this problem everytime I created a new project with spaces in the name. eg "Hell Wev". Using "HellWev" or similar as a project name seems to work fine
I also faced same issue, the scala file options were not not visible in intellij Idea editor because Scala SDK was not installed. So you get rid of this issue after installing SDK for Scala.
added dependencies into build.gradle: