Mica for Visual Studio Code
Language support for the Mica programming language: syntax highlighting, editor behaviour, and — with
the Mica compiler installed — diagnostics, go to definition, hover, and the document outline.
mica-dev.com · Install the compiler · YouTube
Mica is a statically typed systems language that compiles to native Linux x86-64 and AArch64 binaries.
This extension teaches Visual Studio Code to read and work with .mica files.
Features
- Syntax highlighting for the complete current language: keywords and contextual words, built-in and
parameterized types, nested comments, string and regular-expression literals, and numerals with masks
and digit separators.
- Editor behaviour:
begin/end as a bracket pair, code folding, automatic indentation, and word
selection that understands 0x, 0b, and 1_000_000.
- Diagnostics — compile errors and warnings appear in the editor when a file opens and on every save,
at the exact positions the compiler reports.
- Go to definition — jump from a name to its declaration.
- Hover — the resolved signature of the symbol under the cursor.
- Document outline — the functions, types, and constants a file declares, in the Outline view and the
breadcrumb bar.
The language features are provided by the Mica compiler itself running as a language server, so what the
editor underlines is exactly what the build would report.
Requirements
- Syntax highlighting and editor behaviour work out of the box — no additional software.
- The language features (diagnostics, definition, hover, outline) require the Mica compiler,
version 6.12.4 or newer, available from
mica-dev.com/learn/install. The extension finds it as
mica
on PATH; a different location can be set with mica.languageServer.path. Without the compiler, the
extension simply stays with highlighting and shows a single notice.
Extension settings
| Setting |
Default |
Effect |
mica.languageServer.enabled |
true |
Start the language server for diagnostics, definition, hover, and the outline. |
mica.languageServer.path |
(empty) |
Path to the Mica compiler executable. When empty, mica is resolved from PATH. |
Licence
This extension is licensed under the MIT licence. The Mica compiler is a separate product with
its own licence — see mica-dev.com.
| |