Scala Getting Started -01-idea installing Scala plugins

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.