请问一下sublime text 2 代码折叠mac下的快捷键是什么?或者有没有比较好的代码折叠插件?

2013-07-20 18:29:34 +08:00
 gaolinjie
13834 次点击
所在节点    问与答
3 条回复
dppi
2013-07-20 18:42:51 +08:00
全部折叠: Ctrl+kt(win/Linux) CMD+kt(Mac)
全部展开: Ctrl+kj(win/Linux) CMD+kj(Mac)
还有更加精确的控制, 在Key Bingdings - Default设置里,你可以搜索"fold",然后你会看到如下:
{ "keys": ["super+alt+["], "command": "fold" },
{ "keys": ["super+alt+]"], "command": "unfold" },
{ "keys": ["super+k", "super+1"], "command": "fold_by_level", "args": {"level": 1} },
{ "keys": ["super+k", "super+2"], "command": "fold_by_level", "args": {"level": 2} },
{ "keys": ["super+k", "super+3"], "command": "fold_by_level", "args": {"level": 3} },
{ "keys": ["super+k", "super+4"], "command": "fold_by_level", "args": {"level": 4} },
{ "keys": ["super+k", "super+5"], "command": "fold_by_level", "args": {"level": 5} },
{ "keys": ["super+k", "super+6"], "command": "fold_by_level", "args": {"level": 6} },
{ "keys": ["super+k", "super+7"], "command": "fold_by_level", "args": {"level": 7} },
{ "keys": ["super+k", "super+8"], "command": "fold_by_level", "args": {"level": 8} },
{ "keys": ["super+k", "super+9"], "command": "fold_by_level", "args": {"level": 9} },
{ "keys": ["super+k", "super+0"], "command": "unfold_all" },
{ "keys": ["super+k", "super+j"], "command": "unfold_all" },
{ "keys": ["super+k", "super+t"], "command": "fold_tag_attributes" },
P233
2013-07-20 18:45:11 +08:00
cmd option [
cmd option ]

先选中代码,一直想整理一份 sublime text 的快捷键列表,像 vim 那样
gaolinjie
2013-07-20 21:47:23 +08:00
@dppi @P233 感谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/76416

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX