A language server for GN, the build configuration language used in Chromium, Fuchsia, and other projects.
- Syntax highlighting
- Syntax error reporting
- Context-aware completion
- Hover documentation
- Go to definition
- Finding target references
- Following imports
- Following dependencies
- Sticky scroll with useful lines
- Outline
- Code folding
- Formatting
- Go to the nearest
BUILD.gn(VSCode only)
You can install from the official VSCode marketplace or the OpenVSX marketplace. Search for "GN Language" in the VSCode's extension window.
You can install the language server with Cargo.
cargo install gn-language-servercargo build --releasecd vscode-gn
npm install
npm run build
npm run packageWe use the versioning scheme recommended by the VSCode's official documentation. That is:
- Pre-release versions are
1.<odd>.x - Release versions are
1.<even>.x
For an overview of the project's architecture, see ARCHITECTURE.md.
This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.









