This is a Visual Studio Code extension. It is best installed from the on-line extensions marketplace, or from inside VS Code
Preferences/Extensionsand search forswmf-grammar.
Alternatively, the extension can be built and installed manually as in the next section. This should only be required for developers.
-
Clone the repository and enter into the folder
git clone git@github.com:svaberg/SWMF-grammar.git cd SWMF-grammar -
Install the required packages with
npmnpm install
-
Compile with
npmnpm run compile
At this point the extension may be debugged in the Extension Development Host:
code .followed by the Run/Start Debugging dropdown (or the F5 key). To observe the extension in action, view the file demo.in.
To complete the manual installation, follow the remaining steps to manually create and install the package:
-
Create a package using
vscevsce package
This should generate a
swmf-grammar-?.?.?.vsixfile in the current directory. -
Manually install the extension in VS Code (you may want to replace the wildcards in the version number)
code --install-extension swmf-grammar-?.?.?.vsix
To test the installation, open the current folder in VS Code
code .and view the file demo.in.