
The name is an acronym from Scalable Language. The Scala programming language was created in 2001 by Martin Odersky to combine functional programming and object-oriented programming into one language. Take Educative’s hands-on Scala lessons for free, with no experience required.
SCALA CODE CODE

The input is now wrapped in :paste and Ctrl+D to support bigger code pieces better.Setting to require jar-files upon initialisation of the REPL.The focus is now maintained on the selected code instead of transferring focus to the terminal when executing code.The cursor now moves to the next line when you execute a single line.
SCALA CODE FREE
SCALA CODE MANUAL
The default shell for the integrated terminal on Windows (PowerShell) is known to cause problems with manual input to the Scala interpreter.Ĭhange the shell to e.g. You should also have a Scala project in your working directory, otherise SBT will automatically instantiate it when you are using this extension. If you are using the project installation, you must have SBT installed. This can be done with the Coursier tool recommended on the scala-lang website: If you are using the system-wide Scala installation, you must have installed the Scala binaries and added the scala command to PATH. Requirementsĭifferent requirements are applicable for the interpreter options. Using sbt console is a bit slower initially, as SBT will compile and check for updates before entering the interpreter. Please note, that SBT will instantiate a new project, if none is found in the working directory. sbt console uses the Scala Build Tool thourgh the sbt command and will use the local project installation.

The first of which is using the system-wide Scala installation through the scala command. You can choose any Scala interpreter you like, including scala (default) and sbt console. The used REPL Scala interpreter can be changed through the VS Code preferences. Shortcuts are not your style? You can now use the context menu as well! Just select some code and right click to send it to the interpreter. If you are to send single line to the interpreter, there's no need for selection at all! Just place the caret on the line and press the shortcut. The shortcuts can be changed in your VS Code settings. ctrl+alt+r allows you to reset Interactive Scala and start from scratch.


scala file, you can select a subset of your Scala code and use the keyboard shortcut alt+enter to quickly execute the code in the Scala interpreter or ctrl+alt+enter to execute a whole file at once. The extension will automatically open a new integrated terminal and initialise the Scala interpreter upon opening a. Requires Scala Syntax (official) extension. This extension lets you select Scala code and execute it in the Scala interpreter REPL by a quick keyboard shortcut. Interactive Scala is an extension for Visual Studio Code.
