How can I run a Scala project as a Scala application by default in Eclipse IDE?
eclipse, scala, scala-ide
Solution
`Window > Preferences > General > Keys`
Scroll down and select `Run Scala Application`
Edit the Binding to `⌘R` or whatever you want.
This changes the binding for your whole workspace, so it doesn't distinguish between Java and Scala applications. It would be nice if the runner had a box you could tick to choose the default, but this is a decent workaround.
Problem
I am a novice to the Eclipse IDE and the question is how can I run a Scala project as a Scala application by default? When I run the project by hitting the ⌘R key, it always asks how to run it, as a Scala or Java application. Is there a way to skip this and always run it as Scala by default? I guess it's somehow related to the launch configuration, but when I try to make a new launch configuration for the project, it doesn't give me the option of Scala: only Java applet and Java application are shown as choices. I appreciate your help in advance!