IntelliJ Idea Development Scala

Source: Internet
Author: User

1. Download and install IntelliJ idea and install the Scala plugin
    1. I downloaded the 13 version of Linux, the Linux version is the green version, there is a startup script, run on it, you can also build a shortcut on Linux. Download the version of Windows, click Next, and the next step is to install it.
    2. Next install the Scala plugin, open idea, search at the Welcome interface point, Configure->;Plugin->Browse repositories... scala then click install plugin Install, restart

2. Building Scala with SBT project

Or in the Welcome Interface point Create New Project Project interface Select the scala sbt next page, fill out the project name and directory, JDK select Java JDK, specific installation see Linux in the Custom installation of Oracle Sun JDK method

After you have set up project, right-click New directory in the project home directory such as:

Then create a Hello.scala file, such as:

Then, enter print Hello world.

Scala
123 object Hello extends App { println("Hello World") }

Continue, on the Hello.scala, right click on the Make Module "Projetname", long wait, idea automatically go to maven repo download dependent jar Package

After the idea has downloaded the relevant jar package, you can right-click on the Hello.scala to select Run, or debug the Scala program.


Debug Scala Program mode compilation method or call idea's Make method, need to modify the way to SBT compile way


Tagsintellij Idea-sbt-scala

IntelliJ Idea Development Scala

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.