Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Proto Attributor C#New to Visual Studio Code? Get it now.
Proto Attributor C#

Proto Attributor C#

Dan Turco

|
105 installs
| (0) | Free
A Visual Studio Code Extension that can manage the appropriate attributes on a class to support ProtoBuf. It currently supports ProtoContract, ProtoMember, ProtoIgnore attributes. This extension lets you Add, Reorder, and Remove ProtoBuf attributes from a class.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ProtoAttributor

GitHub CI GitHub License Visual Studio Marketplace Version (including pre-releases) Visual Studio Marketplace Installs

ProtoAttributor is an open source Visual Studio Code extension that can manage the appropriate attributes on a class to support ProtoBuf. It currently supports ProtoContract, ProtoMember, ProtoIgnore, DataContract, DataMember, IgnoreDataMember attributes. This extension lets you Add, Reorder, and Remove ProtoBuf attributes from a class. This works in conjunction with the protobuf-net 3.0+ Nuget package

One of the challenges with creating proper ProtoBuf contracts is getting the ordering correct and consistent. While small contract classes are easy to manage as classes get larger or lots of nested classes are created it gets harder and harder to manage and maintain these classes. This is where ProtoAttributor shines. You can Add, Reorder, Remove ProtoBuf attributes from 1 or many classes.

Adding Attributes

Adding attributes options not only adds the ProtoMember/DataMember attributes, it will also ensure the class has the ProtoContract/DataContract attributes and the proper using statements are applied.

Have an existing class that is already attributed and numbered, but you need to add new properties and attributes, ProtoAttributor will examine the existing attributes and start numbering at the next highest number ensuring proper backward and forward compatibility for your proto contract.

Reordering Attributes

Reordering attributes now becomes a snap. this will restart the index at 1 and reset all the ProtoMembers/DataMembers in proper ascending order. This is helpful when contracts have not been releases yet and you want to ensure standardized numbering of your contracts.

Removing Attributes

Removing attributes will not only remove the ProtoMember/DataMember attributes but also includes any attribute or using statements that are related to the [Proto*] or [Data*] family.

Ways to Use

ProtoAttributor can handle single files already open in Visual Studio Code from the F1 menu actions.

Proto[Attributor] In Action

Adding Proto Attributes

Add Proto

Reordering Proto Attributes

Reorder Proto

Removing Proto Attributes

Remove Proto

Adding Data Contract Attributes

Add DataContract

Reordering Data Contract Attributes

Reorder DataContract

Removing Data Contract Attributes

Remove DataContract

Special thanks to logomakr.com for the logo
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft