talira

Scala Syntax (official)

The official Scala 2 and Scala 3 syntax highlighting for VS Code

open sourceMITfree

The official syntax highlighting for Scala 2 and Scala 3 source files in Visual Studio Code, maintained by members of the Scala organization on GitHub. It's a TextMate grammar only, with no language server: the same grammar powers Scala highlighting on GitHub, through github/linguist, and Metals adds completion, navigation and the rest. MIT licensed.

Problems it solves

  • my Scala 3 code isn't highlighted properly in VS Code
  • get Scala syntax colors in my editor without installing a full IDE
  • highlighting for new Scala 3 syntax like given and extension methods

Features

  • syntax highlighting for Scala 2 and Scala 3
  • the grammar GitHub uses to highlight Scala

Alternatives

The same job

These do what Scala Syntax (official) does.

  1. Better Comments Color-coded alerts, queries, TODOs and highlights in your code comments in VS Code
  2. Verilog-HDL/SystemVerilog Verilog, SystemVerilog and VHDL support for VS Code: highlighting, linting, formatting and waveform viewing
  3. Jinja for Visual Studio Code Syntax highlighting and snippets for the Jinja template language in VS Code

Compare Scala Syntax (official) with the top 3