AlexScript for Visual Studio Code
Extension providing full support for the AlexScript language in Visual Studio Code.
Features
- Syntax highlighting — complete TextMate grammar covering all language constructs, with TextMate-conformant scopes (compatible with JavaScript themes).
- Snippets — over 50 templates for common constructs: classes, modules, functions, loops, exception handling, async/await, imports, design patterns.
- IntelliSense — autocompletion of keywords, built-in functions, native classes (after importing the relevant library), and user-defined symbols from the current file.
- Hover — hovering over an identifier shows its signature and description (keywords, built-in functions, standard library methods, reflection methods).
- Outline / breadcrumbs — symbol provider showing classes, modules, functions, exceptions, and global variables.
- Editor configuration — comments (
# line, /* */ block), automatic bracket and quote closing, code folding, indentation rules.
.as file icon.
Supported language constructs
All 38 keywords from the AlexScript lexer:
niech, globalna, jesli, albo, albojesli, to, prawda, falsz, i, lub, dopoki, petla, dla, w, funkcja, nic, zakoncz, nastepny, pokaz, pokazl, zwroc, wyjscie, wczytaj, import, proba, zlap, wkoncu, rzuc, klasa, super, sam, statyczna, prywatne, abstrakcyjna, modul, dolacz, debug, fn, asynchroniczna, czekaj, istnieje, wyjatek.
Native libraries covered by autocompletion and hover:
mat, czas, plik, json, csv, socket, http, digest, securerandom.
Color scheme
Grammar scopes are chosen so that themes designed for JavaScript (Default Dark+, One Dark Pro, Dracula, etc.) color AlexScript consistently:
klasa, funkcja, niech, statyczna, abstrakcyjna → storage.type / storage.modifier (like class/function/let in JS)
jesli, dopoki, dla → keyword.control (like if/while/for)
prawda, falsz, nic → constant.language
sam, super → variable.language
- Class names →
entity.name.type.class
- Function calls →
entity.name.function
- Strings and
#{} interpolation → string.quoted with embedded expression
| |