vscode-stan-extension
October 28, 2025 ยท View on GitHub
This package adds syntax highlighting, code folding, formatting, linting, code suggestions, and snippets for Stan files in Visual Studio Code.
Use another editor? Check out the Stan Language Server which powers most of the features in this extension: https://github.com/tomatitito/stan-language-server
You can try it out online on vscode.dev. A popup will show in
the bottom right recommending you install the extension. Once you have, you can open the files in the demo/ folder.
Features
Syntax highlighting

Linting

Automatic formatting

Snippets and code completion

Hover information

Code Folding

More LSP-like features
By additionally installing Anycode you can get some language-server features like go-to-definition and find-references when using this extension.
Installation
code --install-extension wardbrian.vscode-stan-extension
or find and install it from the Extensions view.
Locally:
npm i
npm run build
code --install-extension ./vscode-stan-extension.0.5.0.vsix # change version as necessary
Credits
This is a fork of the original stan-vscode by ivan-bocharov.
The grammar was originally converted from the atom-language-stan Stan package. The grammar has since been updated to support Stan v2.35.