Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>VSC Protobuf3New to Visual Studio Code? Get it now.
VSC Protobuf3

VSC Protobuf3

remainbeen

| (0) | Free
VS Code extension for Protobuf 3 files with syntax highlighting, diagnostics, go to definition, and find references.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSC Protobuf3

VSC Protobuf3 是一个面向 VS Code 的 Protobuf 3 扩展,为 .proto 文件提供基础但实用的编辑支持,重点覆盖日常开发中最常用的语言能力。

功能

  • .proto 文件语言识别与语法高亮
  • 基础语法与语义诊断
  • 跳转到定义
  • 查找引用
  • 工作区内 import 解析
  • 通过 proto.includePaths 解析额外的 proto 目录
  • 内置支持常见 google/protobuf/* well-known types
  • 支持嵌套 message / enum 的解析与导航

配置

proto.includePaths

用于指定额外的 proto include 目录,以支持解析工作区之外的导入文件。

示例:

{
  "proto.includePaths": [
    "third_party/proto",
    "../shared-protos"
  ]
}

支持:

  • 工作区相对路径
  • 绝对路径

开发

npm install
npm test
npm run test:integration

打包

npm run package

默认会在仓库根目录生成对应版本的 .vsix 文件。

已知定位

这个扩展当前聚焦于 Protobuf 3 的核心编辑体验,还不包含更重型的语言特性,比如补全、hover、重构或代码操作。

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft