Skip to content

numq/protobuf-blueprint-plugin

Repository files navigation

Version Downloads

logo

Protobuf Blueprint is an Intellij Idea plugin that allows you to generate Protocol Buffers code using simple format.

preview

Installation

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "Protobuf Blueprint" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Usage

  1. Go to Tools -> Protobuf Blueprint to open plugin tool window.
  2. Follow the format hint in the plugin tool window to generate the code.

Format Requirements:

Break the line to complete the input.

Message:

Use PascalCase for message names.

message messageName messageName messageName

Enum:

Use PascalCase for enum name and CAPITALS_WITH_UNDERSCORES for enum values.

enum enumName enum_value enum_value enum_value

Service:

Use PascalCase for service name and rpc names.

service serviceName rpcName rpcName rpcName

preview-full