- Back to the Welcome Screen, click Create New Project. The good old IntellIJ IDEA New Project wizard apperas. Here you choose to create a new project from scratch:
- All you need is a Java Module with a name that makes sense, located somewhere you can find it later without spending a whole day digging through your entire hard drive, and the src directory that will store your source code:
- On top of that, select Scala on the Select Desired Technologies. By default all necessary jars will be downloaded automatically, but you also may pick them from already existing IDEA library or a secret place on your hard drive. Note the missing Scala API documentation - if you want to have the possibility to view documentation, you have to download it yourself.
- It's possible to adjust a level of a library you want to create: Global or Project. If you plan to create other projects that involve it, select Global - it lets you share it anywhere on the current machine. Otherwise you can go with Project - it does not really matter for this example.
Now, when the project is ready, it is advisable to explore its settings. To do that, on the main toolbar, click Image Modified. In the Project Structure dialog, click Modules, and then select the Dependencies tab:
Next, pay attention to the Scala facet added to our module. As you see, IntelliJ IDEA has automatically
specified the Scala compiler library, and added it to the list of module dependencies. .
Creating Source Code
Now everything is ready for the first HelloWorld application.