V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
sunshinev
V2EX  ›  程序员

Goland 如何格式化 proto 文件?

  •  
  •   sunshinev ·
    sunshinev · Jun 10, 2020 · 7192 views
    This topic created in 2156 days ago, the information mentioned may be changed or developed.

    查了下资料有 Clang-format 插件,但是具体使用说明没找到,

    请问大家是如何格式化 proto 文件的呢?

    3 replies    2020-06-10 19:06:58 +08:00
    freemoon
        1
    freemoon  
       Jun 10, 2020
    安装 proto 插件,打开的文件 crtl+alt+L
    stevenbipt
        2
    stevenbipt  
       Jun 10, 2020
    clang-format -i xxx.proto
    OakScript
        3
    OakScript  
       Jun 10, 2020
    idea 系的,统一加 file watcher 吧,具体命令搜就好
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3290 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 12:33 · PVG 20:33 · LAX 05:33 · JFK 08:33
    ♥ Do have faith in what you're doing.