- One of the latest IntelliJ IDEA EAP builds (can be downloaded from IntelliJ IDEA EAP page).
- Scala SDK should be downloaded and installed on your computer. This can be done in one of the following ways.
- Download Scala SDK archivefor your specific platform, Scala API documentation and sample, unzip archives to the locations of your choice, and configure environment variables.
- Use the IzPack Installer, which is suitable for all platforms. Download Scala SDK archive and API documentation, unzip API documentation to the location of your choice, and configure environment variablesIn this case you don;t need to download API documentation.
Note that after configuring environment variables, you have to re-login in order for environment variables to take effect.
Setting up the Environment
- Run IntelliJ IDEA. On the Welcome Screen, click Open Plugin Manager.
- Click Available tab and type Scala in the Search box to quickly locate plugin in the list.
- Right-click plugin name, select Download and Install from the menu, and restart IntelliJ IDEA to apply the changes.
- After IntelliJ IDEA is back, open Plugin Manager again to examine the list of installed plugins. If everything is OK, there should be Scala plugin, listed in black, with a tick mark next to its name. All this means the plugin is installed, enabled and is working OK. If there's no tick mark, or plugin name is listed in red, or you can't find it at all - there may be some problem you need to address, like getting the latest IntelliJ IDEA EAP version.
There is an alternative way to install the Scala plugin.Download the Scala plugin from the Nightly Builds page and unzip the archive to the directory <user home>/.IntelliJIdea<xx>/config/plugins. After that, run IntelliJ IDEA.
Creating a Project
If everything is fine, you're ready to create the Scala project with IntelliJ IDEA.
- If you plan to create other projects that involve this library, select Global - thus you will be able to share the library anywhere on the current machine.
- If you select Project level, then all the jar archives will be included in your project. This makes your project portable between the different computers and independent from the Scala SDK.
Exploring Project Structure
Now, when the project is ready, it is advisable to explore its settings. To do that, on the main toolbar, click . In the Project Structure dialog, click Modules, and then select the Dependencies tab: