V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dudor
V2EX  ›  程序员

有这样风格的代码格式化插件吗

  •  
  •   dudor · 2016-03-28 17:53:33 +08:00 · 2714 次点击
    这是一个创建于 2923 天前的主题,其中的信息可能已经有所发展或是发生改变。
    	
    	protected Vector3 		mPos;
    	protected Vector3 		mSize 		= Vector3.zero;
    	protected float 		mCurrent 	= 0f;
    	protected float 		distance 	= 0f;
    
    

    目前主要用 monodev 和 vs ,最好是这两个平台上的插件。。

    8 条回复    2016-03-29 10:36:40 +08:00
    dudor
        1
    dudor  
    OP
       2016-03-28 17:55:20 +08:00
    百度了一圈没找到,来大 V2EX 试试运气。。。
    rushcheyo
        2
    rushcheyo  
       2016-03-28 18:08:49 +08:00   ❤️ 1
    Clang-format 有相关设置。
    UnisandK
        3
    UnisandK  
       2016-03-28 18:10:51 +08:00   ❤️ 1
    Productivity Power Tools 好像有赋值对齐
    xuboying
        4
    xuboying  
       2016-03-28 18:11:45 +08:00   ❤️ 1
    clang-format 要最新的才支持

    如果你还要 python 语言的,可以试试鄙人的模块

    https://github.com/xuboying/pythontidy2
    dudor
        5
    dudor  
    OP
       2016-03-28 18:16:08 +08:00
    谢谢楼上各位,我参考下。。。
    morefreeze
        6
    morefreeze  
       2016-03-28 18:17:04 +08:00
    顺便求下 protobuf 的这种格式化插件
    nisbme
        7
    nisbme  
       2016-03-29 10:21:37 +08:00
    vim 有一个插件 vim-easy-align ,可以手工段落对齐
    bp0
        8
    bp0  
       2016-03-29 10:36:40 +08:00
    其实不太理解,为啥要这样对齐。难道这样代码更容易读吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3358 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:43 · PVG 18:43 · LAX 03:43 · JFK 06:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.