Since I have been using idea to develop a Java project, Scala can now also use idea development: http://www.jetbrains.com/idea/
Community Edition free and Ultimate Edition free 30-day trial all support Scala development, I use the Ultimate Edition
When we download idea after installing and booting, we need to install a Scala Plugin, the following steps:
The following interface appears when you enter plugins:
Click Install jetbrains Plugin. Button
Enter Scala back to the following interface:
Clicking the Install Plugin button will automatically download the Scala plugin, and then the reboot will take effect when it is installed automatically.
Create a Scala project: File->new project->scala->sbt->next-> Enter the project name->finish
Because we use the SBT method, we need idea to build it automatically
After SBT auto-build is complete:
To create a Scala class: Right-click the Scala popup "New" under main under SRC to select "Scala class"
Name: Enter Myfirstscala,kind: Select Object, click OK
By using Ctrl+j shortcut keys, you can generate the main method and the Println method
Press the shortcut key CTRL+SHIFT+F10 or in this class right click on Run "Myfirstscala"
If you are prompted to configure the JDK, just follow the normal configuration of the process, and here I am not in detail
Scala Getting Started -01-idea installing Scala plugins