https://github.com/wardbrian/vscode-stan-extension
Stan language support for Visual Studio Code
https://github.com/wardbrian/vscode-stan-extension
Last synced: 4 months ago
JSON representation
Stan language support for Visual Studio Code
- Host: GitHub
- URL: https://github.com/wardbrian/vscode-stan-extension
- Owner: WardBrian
- License: gpl-3.0
- Created: 2022-11-30T19:50:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-22T15:15:31.000Z (5 months ago)
- Last Synced: 2026-01-23T08:22:43.487Z (5 months ago)
- Language: TypeScript
- Size: 14.6 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-stan-extension
[](https://marketplace.visualstudio.com/items?itemName=wardbrian.vscode-stan-extension)
[](https://open-vsx.org/extension/wardbrian/vscode-stan-extension)
[](https://github.com/WardBrian/vscode-stan-extension/actions/workflows/release.yaml)
This package adds syntax highlighting, code folding, formatting, linting, code suggestions,
and snippets for [Stan](https://mc-stan.org) files in [Visual Studio Code](https://code.visualstudio.com/).
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](https://vscode.dev/github/WardBrian/vscode-stan-extension). 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](https://marketplace.visualstudio.com/items?itemName=ms-vscode.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](https://github.com/ivan-bocharov/stan-vscode).
The grammar was originally converted from the [atom-language-stan](https://github.com/jrnold/atom-language-stan) Stan package. The grammar has since been updated to support Stan v2.35.