This repository adds support for the Abs language in Visual Studio Code.
Syntax highlighting and compiling single-file models.
To compile ABS code inside VS Code, set the following options:
abs.compileCommand
: If theabsc
command is not in your path, set this option to the command that starts the ABS compiler.abs.backend
: One of--erlang
,--java
,--maude
.abs.compileOptions
: This contains a list of options to pass to the compiler. See the output ofabsc -h
for a list of applicable options.
Note: to run the ABS compiler from a Jar file (typically absfrontend.jar
)
instead of via the absc
script, set abs.compileCommand
to java
and add
two items to abs.compileOptions
: -jar
and /path/to/absfrontend.jar
.
To install the latest released version, download the .vsix
file from https://github.com/abstools/abs-vs-code/releases/latest (currently abs-0.0.7.vsix
).
Run code --install-extension abs-0.0.7.vsix
-
Open the Extensions list in the left-hand column.
-
Choose "Install from VSIX..." from the three-dotted menu (
...
) on the upper right hand side of the extensions list: -
In the file browser, choose the
abs-0.0.7.vsix
file downloaded from https://github.com/abstools/abs-vs-code/releases/latest .
To use the extension from a git checkout, copy the abs/
subdirectory into
your ~/.vscode/extensions
directory, e.g., with the following commands:
cd ~/.vscode/extensions
cp -r /path/to/abs-vs-code/abs abs
To run the current source, open the abs/
subfolder inside VS Code and press
F5
(Run -> Start Debugging).
To create a .vsix
package, install node then run
the following commands:
npm install
cd abs
vsce package