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

Sublime text key-bindings怎么写?

  •  
  •   coolicer · 2013-12-09 10:41:18 +08:00 · 3068 次点击
    这是一个创建于 3817 天前的主题,其中的信息可能已经有所发展或是发生改变。
    [
    { "keys": ["f12"], "command": "reindent"},
    { "keys": ["ctrl+alt+n"], "command": "new_snippet"},
    { "keys" : ["n","n"], "command": "advanced_new_file",
    "context":[{"key": "setting.command_mode","operand": true}]},

    { "keys":["j","j"], "command": "exit_insert_mode",
    "context":[
    { "key": "setting.command_mode", "operand": false},
    { "key": "setting.is_widget", "operand": false}
    ]
    }
    ]

    这些command是自己命名的吗?http://www.sublimetext.com/docs/commands这里没有上面的命令。
    3 条回复    2015-10-24 13:07:05 +08:00
    ooh
        1
    ooh  
       2013-12-09 23:14:45 +08:00
    cmd能自己命名吗?自己命名系统怎么知道执行什么?
    coolicer
        2
    coolicer  
    OP
       2013-12-10 16:23:33 +08:00
    @ooh 我已经知道怎么弄了,哈哈。
    laputa6616
        3
    laputa6616  
       2015-10-24 13:07:05 +08:00
    @ooh ctrl+` 调出控制台,输入 sublime.log_commands(True),你后面所有的操作 都会在控制台显示出来,然后 把里面的 command 照搬过来就行了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2618 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:53 · PVG 20:53 · LAX 05:53 · JFK 08:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.