https://github.com/mesonbuild/vscode-meson
Meson for VisualStudio Code
https://github.com/mesonbuild/vscode-meson
meson mesonbuild vscode
Last synced: 4 months ago
JSON representation
Meson for VisualStudio Code
- Host: GitHub
- URL: https://github.com/mesonbuild/vscode-meson
- Owner: mesonbuild
- License: apache-2.0
- Created: 2017-05-09T15:42:45.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2026-01-19T07:26:05.000Z (6 months ago)
- Last Synced: 2026-01-21T00:59:47.808Z (6 months ago)
- Topics: meson, mesonbuild, vscode
- Language: TypeScript
- Size: 543 KB
- Stars: 129
- Watchers: 7
- Forks: 51
- Open Issues: 54
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Meson for Visual Studio Code
This extension provides support for [Meson](http://mesonbuild.com/) in
[Visual Studio Code](https://code.visualstudio.com/). This language grammar was
based on the grammar found in the
[atom extension](https://github.com/TingPing/language-meson) from
[Patrick Griffis](https://github.com/TingPing), but has since been added onto to
support more features, including code from the VSCode
[grammar](https://github.com/microsoft/vscode/blob/main/extensions/python/syntaxes/MagicPython.tmLanguage.json)
for Python.
Meson logo by [Jussi Pakkanen](https://github.com/jpakkane),
[licensed for use by this project](http://mesonbuild.com/legal.html). Icons from
the [Material Design Icons](https://materialdesignicons.com/) project.
## Features
- Syntax Highlighting
- Automatic Task Provider
- Code Snippets
- Linting[^0]
- Formatting[^1]
- Generate environment file to be used in launch.json:
`"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env"`
See [Meson devenv](https://mesonbuild.com/Commands.html#devenv)
- Configure Intellisense to use the `compile_commands.json` generated by Meson
- Provide an Intellisense C/C++ configuration to use the `meson-info`
introspection files:
`"C_Cpp.default.configurationProvider": "mesonbuild.mesonbuild"`
## New Extension ID
If you come from a previous installation, please make sure you are on the
**mesonbuild.mesonbuild** extension. There are 3 variants/versions of this
extension on the store, and only that one is released from this repository.
[^0]:
Requires an installation of
[mesonlsp](https://github.com/JCWasmx86/mesonlsp) or
[muon](https://muon.build).
[^1]: Requires an installation of muon or meson >= 1.5.0