0

我喜欢缩进重复的代码行,以便它们易于查看和发现细微差别。例如,这很难阅读:

address = "1800 Washington St."
name = "George McGoo"
user_type = "admin"

但这很容易阅读:

address   = "1800 Washington St."  
name      = "George McGoo"  
user_type = "admin"

有没有办法在 Textmate 中做到这一点而不会耗尽我的空格键?

编辑:感谢 Meryn 的对齐分配解决方案。我希望有一些更通用的东西可以用来对齐像这样的 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; }
4

1 回答 1

2

您正在寻找的命令是“对齐分配”。

使用 打开捆绑项目选择器⌃ ⌘ T,然后搜索。或者⌥ ⌘ ]直接使用。

于 2013-05-02T22:54:13.620 回答