Easily work with Protocol Buffers (.proto files) in Visual Studio Code. This extension provides rich language support for proto3, including syntax highlighting, code navigation, completions, diagnostics, and helpful snippets.
Powered by the protols language server.
- Syntax Highlighting for
.protofiles - Snippets for common proto3 constructs
- Go to Definition and Find References
- Basic Code Completions
- Diagnostics for errors and warnings
Below is an example of the extension in action:
- From Marketplace:
- Install from VS Code Marketplace OR Open VSX Marketplace
- Manual:
- Download the latest
.vsixfrom Releases and install viaExtensions: Install from VSIX...in VS Code.
- Download the latest
Open any .proto file to activate the extension. Syntax highlighting and snippets work out of the box.
On first use, the extension will prompt to install the protols language server automatically.
-
If
protolsis not installed in your systemPATH, set the path manually in your VS Codesettings.json:{ "protobuf-support.protols.path": "/path/to/protols" } -
To install
protolsmanually (requires Rust):cargo install protols
- VS Code or any https://open-vsx.org supported IDE
- protols language server (auto-installed or manual)
- TextMate grammars and basic snippets are sourced from zxh0/vscode-proto3
- Language features powered by coder3101/protols
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
For questions or help, open an issue on GitHub.
