Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pp:scala-environment [2022/04/30 09:54]
vbadoiu created
pp:scala-environment [2026/02/26 10:36] (current)
ldaniel [Configurare IDE pentru primul laborator - 2026]
Line 9: Line 9:
 One of the most widely used IDE (Integrated Development Environment) for Scala is: One of the most widely used IDE (Integrated Development Environment) for Scala is:
   * [[https://​www.jetbrains.com/​idea/​download/​ | IntellIJ]]   * [[https://​www.jetbrains.com/​idea/​download/​ | IntellIJ]]
 +  * [[https://​scalameta.org/​metals/​docs/​editors/​vscode/​ | Visual Studio Code]] with Scala (Metals) extension
   * alternatively,​ you can use [[https://​www.sublimetext.com/​download | Sublime]], which is a simpler (faster) editor. You can add syntax highlighting plugins for Scala (see: [[https://​scalameta.org/​metals/​docs/​editors/​sublime/​ | scalameta ]]), as well as worksheet/​REPL support (see: [[https://​packagecontrol.io/​packages/​SublimeREPL | SublimeREPL]]).   * alternatively,​ you can use [[https://​www.sublimetext.com/​download | Sublime]], which is a simpler (faster) editor. You can add syntax highlighting plugins for Scala (see: [[https://​scalameta.org/​metals/​docs/​editors/​sublime/​ | scalameta ]]), as well as worksheet/​REPL support (see: [[https://​packagecontrol.io/​packages/​SublimeREPL | SublimeREPL]]).
  
 +
 +==== Configurare IDE pentru primul laborator - 2026 ====
 +
 +  - Deschideti Visual Studio Code din directorul unde vreti sa salvati noul proiect cu laboratoarele.
 +  - Instalati extensia Metals in Visual Studio Code. Pe bara din stanga va aparea un simbol cu forma M. 
 +  - Apasati pe simbolul M al extensiei Metals.
 +  - Apasati pe New Scala Project pentru a crea un proiect nou pentru laboratoare.
 +  - Alegeti template-ul scala/​scala3.g8.
 +  - Salvati proiectul.
 +  - Intrati in tabul Explorer de la Visual Studio Code (prima iconita cu file de pe bara din stanga ecranului).
 +  - Dati click dreapta pe directorul src/​main/​scala si apasati **New Scala File..**, apoi alegeti **Worksheet** si puneti-i un nume (ex: laborator1)
 +  - Scrieti o functie din laborator si apelati-o. Apasati CTRL+S pentru a fi generat output-ul.
 +
 +OPTIONAL: Puteti instala extensia Error Lens pentru Visual Studio Code, aceasta va arata erorile direct pe linia de cod unde e problema si va poate ajuta.