Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Protobuf To TypescriptNew to Visual Studio Code? Get it now.
Protobuf To Typescript

Protobuf To Typescript

yi.shi & brandon.xiang

|
670 installs
| (2) | Free
Convert protobuf struct to typescript type
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-protobuf-to-typescript

Usage

Please search "Protobuf To Typescript" in your vscode extensions marketplace.

Visual Studio Code Market Place: Protobuf to Typescript

We provide two ways to convert protobuf to typescript.

convert from selection

  • STEP 1: Select the protobuf of the current active window

  • STEP 2: Open the vscode command palette (How to open please refer to Vscode Official Website)

  • STEP 3: Search "pbts:from selection", execute

convert from clipboard

  • STEP 1: Copy protobuf from somewhere

  • STEP 2: Open the vscode command palette (How to open please refer to Vscode Official Website)

  • STEP 3: Search "pbts:from clipboard", execute,the converted typescript will be filled at the cursor of the currently active window

Settings

Users can then control this setting by creating a .vscode/settings.json file in their project root

{
  //Specify the output type for the converted files
  "protobufToTypescript.outputType": "jsdoc",
  //Specify the edge case for int64(long type)
  "protobufToTypescript.mode": "strict"
}

Problem

If you have any questions, you can contact me by email @brandon.xiang@gmail.com

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