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

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

  •  
  •   gaolinjie · 2013-07-20 18:29:34 +08:00 · 13807 次点击
    这是一个创建于 4146 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    1970-01-01 08:00:00 +08:00
    dppi
        1
    dppi  
       2013-07-20 18:42:51 +08:00   ❤️ 1
    全部折叠: 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
        2
    P233  
       2013-07-20 18:45:11 +08:00   ❤️ 2
    cmd option [
    cmd option ]

    先选中代码,一直想整理一份 sublime text 的快捷键列表,像 vim 那样
    gaolinjie
        3
    gaolinjie  
    OP
       2013-07-20 21:47:23 +08:00
    @dppi @P233 感谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5447 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 08:59 · PVG 16:59 · LAX 00:59 · JFK 03:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.