V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
coolicer
V2EX  ›  问与答

Sublime text key-bindings怎么写?

  •  
  •   coolicer · Dec 9, 2013 · 3818 views
    This topic created in 4529 days ago, the information mentioned may be changed or developed.
    [
    { "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 replies    2015-10-24 13:07:05 +08:00
    ooh
        1
    ooh  
       Dec 9, 2013
    cmd能自己命名吗?自己命名系统怎么知道执行什么?
    coolicer
        2
    coolicer  
    OP
       Dec 10, 2013
    @ooh 我已经知道怎么弄了,哈哈。
    laputa6616
        3
    laputa6616  
       Oct 24, 2015
    @ooh ctrl+` 调出控制台,输入 sublime.log_commands(True),你后面所有的操作 都会在控制台显示出来,然后 把里面的 command 照搬过来就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2414 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 01:15 · PVG 09:15 · LAX 18:15 · JFK 21:15
    ♥ Do have faith in what you're doing.