Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>AMPL for VS CodeNew to Visual Studio Code? Get it now.
AMPL for VS Code

AMPL for VS Code

Johan Cho

|
670 installs
| (1) | Free
AMPL language support for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ampl-vscode

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

Features

  • Syntax coloring, definition on hover
  • Additional terminal
  • Including files in terminal
  • Snippets, tab to complete keywords

Requirements

  • 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 +

Settings

  • ampl.pathToExecutable: path to ampl.exe -- defaults to looking for it on path
  • ampl.useRelativePath: toggles relative file paths when running through the ample console
  • ampl.complierArgs: arguments to feed into the ampl executable

Building

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.

Contributions

  • Jamie Cho > PR-4
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft