简体   繁体   中英

Indent a Proto file in Visual Studio

Is there a way to auto indent Proto file code in Visual Studio. For example, C# code can be indented but proto file isnt getting indented in visual studio 2019. Thanks

Thanks to NPras. I was able to format a proto file using vscode-proto3. Clang-Format also works as an extension in Vs Code. The clang-format needs to be in system path for both the extensions to work.

clang-format extension can be downloaded from here: https://llvm.org/builds/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM