V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ioioioioioioi
V2EX  ›  问与答

谁记得实现等号对齐的 sublime text 插件的名称叫什么?

  •  
  •   ioioioioioioi · 2017-01-06 10:18:31 +08:00 · 5616 次点击
    这是一个创建于 2878 天前的主题,其中的信息可能已经有所发展或是发生改变。
    'country_name' => input(''),
    'company_name' => input(''),
    'company_id' => input(''),
    'job_title' => input(''),
    

    等号对其如下

    'country_name'  => input(''),
    'company_name'  => input(''),
    'company_id'    => input(''),
    'job_title'     => input(''),
    

    找到了,是alignment

    7 条回复    2017-01-06 11:41:10 +08:00
    hanzichi
        1
    hanzichi  
       2017-01-06 10:27:55 +08:00   ❤️ 2
    alignment
    hanzichi
        2
    hanzichi  
       2017-01-06 10:28:50 +08:00
    ioioioioioioi
        3
    ioioioioioioi  
    OP
       2017-01-06 10:35:23 +08:00
    @hanzichi 刚装了 alignment , 没反应是怎么回事?
    ~~~~
    [
    { "keys": ["alt+z"], "command": "alignment" }
    ]
    hanzichi
        4
    hanzichi  
       2017-01-06 11:03:18 +08:00
    @ioioioioioioi 没选中代码?或者 alt+z 快捷键冲突了?
    hanzichi
        5
    hanzichi  
       2017-01-06 11:03:35 +08:00
    @ioioioioioioi 重启下 sublime ?
    ioioioioioioi
        6
    ioioioioioioi  
    OP
       2017-01-06 11:14:33 +08:00
    @hanzichi 搞定了,多谢。在 setting 里加了"alignment_chars": ["=", ":", "=>"]
    loserwn
        7
    loserwn  
       2017-01-06 11:41:10 +08:00
    @ioioioioioioi 原则上默认的配置中应该支持 => 吧。

    ```bash
    // The characters to align along with "alignment_chars"
    // For instance if the = is to be aligned, there are a number of
    // symbols that can be combined with the = to make an operator, and all
    // of those must be kept next to the = for the operator to be parsed
    "alignment_prefix_chars": [
    "+", "-", "&", "|", "<", ">", "!", "~", "%", "/", "*", "."
    ]
    ```
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1237 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 18:12 · PVG 02:12 · LAX 10:12 · JFK 13:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.