Download Scala Ide For Mac

  1. Download Scala Ide
  2. Download Scala Ide Eclipse
  3. Scala Ide Org

Install Scala plugin

Download; By downloading, you agree to the Terms and Conditions. Other platforms Try Atom Beta Try Atom Nightly. A hackable text editor for the 21st Century. Teletype for Atom. Great things happen when developers work together—from teaching and sharing knowledge to building better software. Teletype for Atom makes collaborating on code just. Scala IDE for Eclipse is best installed (and updated) directly from within Eclipse. This is done by using Help → Install New Software., add the Add. Button in the dialog. Choose a name for the update site (Scala IDE is an obvious choice). Then read the next section to select which version you will install.

To start working with Scala in IntelliJ IDEA you need to download and enable the Scala plugin. If you run IntelliJ IDEA for the first time, you can install the Scala plugin when IntelliJ IDEA suggests downloading featured plugins. Otherwise, you can use the Plugins page for the installation. After the installation, IntelliJ IDEA will keep track of the plugin updates and will suggest updating the plugin when a new version is available. You can also use the Plugin update channel at the Updates tab, located in Settings Languages & Frameworks Scala to check for Scala nightly, EAP, or release builds.

To install Scala plugin, press Ctrl+Alt+S, open the Plugins page, browse repositories to locate the Scala plugin, click Install and restart IntelliJ IDEA.

Now you can successfully check out from VCS, create, or import Scala projects.

User interface

The user interface for Scala looks similar to a regular one unless you work with sbt projects, in that case the sbt projects tool window and sbt Shell become available.

Also IntelliJ IDEA lets you keep track of error analysis based on the Scala type system using the Scala type-aware highlighting. By default, it is enabled and you can see the icon located at the bottom of the user interface. You can click the icon or press Ctrl+ Alt+Shift+E to disable this feature.

The most interesting part of the user interface is the IntelliJ IDEA Editor since it lets you invoke almost any IDE feature without leaving it, which helps you organize a layout where you have more screen space because auxiliary controls like toolbars and windows are hidden.

Download Scala Ide For Mac

Accessing a tool window via its shortcut moves the input focus to it, so you can use all keyboard commands in its context. When you need to go back to the editor, press Escape.

Download Scala Ide

Below is a list of shortcuts that invoke the tool windows you will most often need:

Tool WindowShortcut
Version ControlAlt+9

The sbt projects tool window and sbt Shell can be accessed via main menu (View Tool Windows) or you can always press Ctrl+Shift+A to quickly search for these items.

When you want to focus on the code, try the Distraction Free Mode. It removes all toolbars, tool windows, and editor tabs. To switch to this mode, from the main menu select View Appearance Enter Distraction Free Mode.

An alternative to the Distraction Free Mode may be hiding all tool windows by pressing Ctrl+Shift+F12. You can restore the layout to its default by pressing this shortcut once again.

The Navigation Bar is a compact alternative to the Project tool window. To access the Navigation Bar, press Alt+Home.

Most components in IntelliJ IDEA (both tool windows and popups) provide speed search. This feature allows you to filter a list, or navigate to a particular item by using a search query.

When you don't know the shortcut for an action, try using the Find action feature by pressing Ctrl+Shift+A. Start typing to find an action by its name, see its shortcut or call it.

For more details, refer to Overview of the user interface , Editor basics , and Tool windows .

Editor basics

Since in IntelliJ IDEA you can undo refactorings and revert changes from Local History, it makes no sense to ask you to save your changes every time.

The most useful Editor shortcuts are:

Move the current line of codeCtrl+Shift+UpCtrl+Shift+Down
Duplicate a line of codeCtrl+D
Remove a line of codeCtrl+Y
Comment or uncomment a line of codeCtrl+/
Comment a block of codeCtrl+Shift+/
Find in the currently opened fileCtrl+F
Find and replace in the current fileCtrl+R
Next occurrenceF3
Previous occurrenceShift+F3
Navigate between opened tabsAlt+RightAlt+Left
Navigate back/forwardCtrl+Alt+LeftCtrl+Alt+Right
Expand or collapse a code block in the editorCtrl+NumPad +Ctrl+NumPad -
Surround withCtrl+Alt+T
Highlight usages of a symbolCtrl+F7

To expand a selection based on grammar, press Ctrl+W. To shrink it, press Ctrl+Shift+W.

IntelliJ IDEA can select more than one piece of code at a time. You can select next occurrence via Alt+J and deselect by pressing Alt+Shift+J. You can even select all occurrences at once, by pressing Ctrl+Alt+Shift+J.

For more details, refer to Editor basics .

Code completion

When you access Basic Completion by pressing Ctrl+Space, you get basic suggestions for variables, types, methods, expressions, for a parameter name you get type suggestions and so on. When you call Basic Completion twice, it shows you more results, including methods from implicit conversions that you can import.

The Smart Completion feature is aware of the expected type and data flow, and offers the options relevant to the context. To call Smart Completion, press Ctrl+Shift+Space. When you call Smart Completion twice, it shows you more results, including chains.

To overwrite the identifier at the caret, instead of just inserting the suggestion, press Tab. This is helpful if you're editing part of an identifier, such as a filename.

To let IntelliJ IDEA complete a statement for you, press Ctrl+Shift+Enter. Statement Completion will automatically add the missing parentheses, brackets, braces and the necessary formatting.

If you want to see the suggested parameters for any method or constructor, press Ctrl+P. IntelliJ IDEA shows the parameter info for each overloaded method or constructor, and highlights the best match for the parameters already typed.

The Postfix Completion feature lets you transform an already typed expression to another one, based on the postfix you type after a dot.

For more details, refer to Auto-Completing Code.


Recent files

Most of the time you work with a finite set of files, and need to switch between them quickly. A real time-saver here is an action called Recent Files invoked by pressing Ctrl+E. By default, the focus is on the last accessed file. Note that you can also open any tool window through this action:

Navigate to Class is available by pressing Ctrl+N and supports sophisticated expressions, including camel humps, paths, line navigate to, middle name matching, and many more. If you call it twice, it shows you the results out of the project classes.

Navigate to File works similarly by pressing Ctrl+Shift+N, but is used for files and folders. To navigate to a folder, end your expression with the Slash character.

Navigate to Symbol is available by pressing Ctrl+Alt+Shift+N and allows you to find a method or a field by its name.

You can use the Project tool window to explore the internal structure of a file. Click and from the list that opens, select Show members.


When you are not switching between files, you are most probably navigating within a file. The simplest way to do it is to press Ctrl+F12. The popup shows you the structure of a file, and allows you to quickly navigate to any of them:

Select in

If you need to open a file in a particular tool window (or Finder/Explorer), you can do so via the Select In action by pressing Alt+F1:

Navigation shortcuts include:

Search everywhere Double Shift
Navigate to classCtrl+N
Navigate to fileCtrl+Shift+N
Navigate to symbolCtrl+Alt+Shift+N
Recent filesCtrl+E
File structureCtrl+F12
Select inAlt+F1
Navigate to declarationCtrl+B
Navigate to type hierarchyCtrl+H
Show UML popupCtrl+Alt+U

For more details, refer to Source code navigation .

Quick popups

Quick Popups are helpful for checking additional information related to the symbol at the caret. Below is a list of popups you should know if you want to be more productive:

Type InfoAlt+Equals
Quick definitionCtrl+Shift+I
Show usagesCtrl+Alt+F7
Show implementationCtrl+Alt+B
Implicit conversionsCtrl+Shift+Q
Implicit parametersCtrl+Shift+P

Quick Popups are available for symbols in the editor; however, they are also available for items in any other list via the same shortcuts.

Refactoring basics

IntelliJ IDEA offers a comprehensive set of automated code refactorings that lead to significant productivity gains when used correctly. Firstly, don't bother selecting anything before you apply a refactoring. IntelliJ IDEA is smart enough to figure out what statement you're going to refactor, and only asks for confirmation if several choices are possible.

Download Scala Ide Eclipse

To undo the last refactoring, switch the focus to the Project tool window and press Ctrl+Z.

Extract variable or typeCtrl+Alt+V
Extract fieldCtrl+Alt+F
Extract a constantCtrl+Alt+C
Extract a methodCtrl+Alt+M
Extract a parameterCtrl+Alt+P
Refactor thisCtrl+Alt+Shift+T

For extracting a trait, use main menu (Refactor Extract Trait).

A real time-saver is the ability to extract part of a string expression with the help of the Extract refactorings. Just select a string fragment and apply a refactoring to replace all of the selected fragment usages with the introduced constant or variable.

For more details, refer to Code refactoring .

Scala Ide Org

Finding usages

Find Usages helps you quickly find all pieces of code referencing the symbol at the caret (cursor), no matter if the symbol is a class, method, field, parameter, or another statement. Just press Alt+F7 and get a list of references grouped by usage type, module, and file.

If you want to set custom options for the Find Usages algorithm, press Ctrl+Alt+Shift+F7, or click the first button on the right panel with search results.

If what you're looking for is plain text, use Find in Path by pressing Ctrl+Shift+F.

For more details, refer to Search for usages.


Inspections are built-in static code analysis tools that help you find probable bugs, locate dead code, detect performance issues, and improve the overall code structure.

Most inspections not only tell you where a problem is, but also provide quick fixes to deal with it right away. Press Alt+Enter to choose a quick-fix.

The editor lets you quickly navigate between the highlighted problems via keyboard shortcuts. Press F2 to go to the next problem, and Shift+F2 to go to the previous one.

Inspections that are too complex to be run on-the-fly are available when you perform code analysis for the entire project. You can do this in one of the following two ways: by selecting Analyze Inspect Code from the main menu, or by selecting Analyze Run Inspection by Name to run an inspection by its name.

Note that while inspections provide quick-fixes for code that has potential problems, intentions help you apply automatic changes to code that is correct. To get a list of intentions applicable to the code at the caret, press Alt+Enter.

For more details, refer to Code inspections .

Code style and formatting

IntelliJ IDEA automatically applies a code style you've configured in the Code Style settings as you edit, and in most cases you don't need to call the Reformat Code action explicitly.

However, you can take full advantage of Scalafmt and use it for code formatting. For more information, refer to the Scala formatter section.

Check the following formatting shortcuts:

Reformat codeCtrl+Alt+L
Auto-indent linesCtrl+Alt+I
Optimize importsCtrl+Alt+O
Desugar Scala code (file) Ctrl+Alt+D

You can also use the Scalastyle inspection for checking your Scala code. Place scalastyle_config.xml in the <root>/.idea or <root>/project directory and inspect your code.

Note that by default, IntelliJ IDEA uses regular spaces for indents instead of tabs. If you have files with lots of indents, you may want to optimize their size by enabling the Use tab character option located in Settings Editor Code Style Scala.

For more details, refer to Reformatting Source Code.

Run and debug

Once you've created a run/debug configuration by selecting Run Edit Configurations from the main menu, you are able to run and debug your Scala code.

For sbt projects you are also able to run and debug your code using sbt shell. Options Use sbt shell for build and import and Enable debugging for sbt shell, located on sbt page in settings, will enable you to do so.

For quick code evaluation, you can use a Scala worksheet that enables you to interactively run your code. Press Ctrl+Alt+Shift+X to create a light version of the Scala worksheet and Ctrl+Alt+W to run it.

The regular actions for run/debug are as follows:

When in the debug mode, you can evaluate any expression by using the Evaluate expression tool, which is accessed by pressing Alt+F8. This tool provides code completion in the same way as in the editor, so it's easy to enter any expression.

Sometimes, you may want to step into a particular method, but not the first one which will be invoked. In this case, use Smart step into by pressing Shift+F7 to choose a particular method.

Toggle breakpointCtrl+F8
Step intoF7
Smart step intoShift+F7
Step overF8
Step outShift+F8
Evaluate expressionAlt+F8

If you want to 'rewind' while debugging, you can do it via the Drop Frame action. This is particularly helpful if you mistakenly stepped too far. This will no revert the global state of your application, but will at least let you revert to a previous stack frame.

Any breakpoint can be quickly disabled by clicking on the gutter while holding Alt. To change breakpoint details, for example, conditions, press Ctrl+Shift+F8.

For more details, refer to Running and Debugging.

Reloading changes and hot swapping

Sometimes, you need to insert minor changes into your code without shutting down the process. Since the Java VM has a HotSwap feature, IntelliJ IDEA handles these cases automatically when you call Make.

Application servers

If you need, you can deploy your Scala application to a server.

For more details, refer to Working with Application Servers.


When you've imported or created your sbt project, you can edit its build.sbt file directly in the editor. In build.sbt you can specify compiler options, information about your sub-projects, and also define your tasks and settings. Every time you change the build.sbt file, you need to synchronize your changes with the project model in IntelliJ IDEA.

You can select the Use Auto-import option to synchronize the changes made to build.sbt automatically. To access this option, select File Settings Build, Execution, Deployment Build Tools sbt.

For manual synchronization, use the corresponding action on the sbt projects tool window toolbar: .

Note that any sbt task can be attached to be run before a run configuration.

IntelliJ IDEA also lets you use other build tools such as Gradle or Maven to build your Scala project.