Unnoficial language extension for ampl, a mathematical programming language. This was a fork of @msundvick's original work.
This extension is still in development, please submit pull requests, issues or feature requests in the repo.
Link to marketplace: https://marketplace.visualstudio.com/items?itemName=johan-cho.ampl-vscode
- Syntax coloring, definition on hover
- Additional terminal
- Including files in terminal
- Snippets, tab to complete keywords
-
A version of AMPL is needed to run files. You could get a free license and install it on ampl.com
-
Visual Studio Code 1.86.0 +
ampl.pathToExecutable
: path toampl.exe
-- defaults to looking for it on pathampl.useRelativePath
: toggles relative file paths when running through the ample consoleampl.complierArgs
: arguments to feed into the ampl executable
Cloning:
git clone https://https://github.com/johan-cho/ampl-vscode.git
Running:
npm run compile
will build and compile the app. Press f5 to launch the debugger. The source file for autocomplete, syntax coloring and definitions is ./resources/keywords.json.
- Jamie Cho > PR-4