0
我喜欢缩进代码的重复行,这样他们很容易看,看到小的差异。作为一个例子,这是难以阅读:可以textmate安排我的代码到可读列吗?
address = "1800 Washington St."
name = "George McGoo"
user_type = "admin"
但是这很容易阅读:
address = "1800 Washington St."
name = "George McGoo"
user_type = "admin"
有没有办法在TextMate中做到这一点不戴我的空间吧?
编辑:感谢梅林的对齐指派解决方案。我希望更多的东西通用的,我可以用它来对齐文本这样的CSS:
#anim_customer_panel_shadow { left: 341px; top: 389px; }
#anim_customer_panel_3 { left: 394px; top: 260px; }
#anim_customer_panel_highlight_3 { left: 391px; top: 266px; }
#anim_customer_panel_3_text_highlight { left: 451px; top: 272px; }
这很好,但我在寻找更一般的东西(请参阅编辑)。 – muirbot 2013-05-02 23:26:57
我不认为Textmate可以做到这一点。您可能能够修改对齐命令的Ruby代码。这似乎是可行的,虽然我对正则表达式无能为力。 :) – 2013-05-02 23:40:22