最近在用Xdebug插件
感觉挺好用
但是快捷键不太舒服,特别是调试下一步的时候,比较麻烦,按键较多;
所以想DIY下
但是preferences->package setting ->Xdebug,里面没有快捷键的设置;
那就去 preferences-> key bindings-default/user 去找Xdebug的设置,全没有……
最终在C:UsersAdministratorAppDataRoamingSublime Text 3Installed Packages里面的Xdebug Client.sublime-package;
用压缩软件打开他,找到里面的Default.sublime-keymap;
打开后看到:
[
{"keys": ["ctrl+f8"], "command": "xdebug_breakpoint"},
{"keys": ["shift+f8"], "command": "xdebug_conditional_breakpoint"},
{"keys": ["ctrl+shift+f5"], "command": "xdebug_continue", "args": {"command": "run"}},
{"keys": ["ctrl+shift+f6"], "command": "xdebug_continue", "args": {"command": "step_over"}},
{"keys": ["ctrl+shift+f7"], "command": "xdebug_continue", "args": {"command": "step_into"}},
{"keys": ["ctrl+shift+f8"], "command": "xdebug_continue", "args": {"command": "step_out"}},
{"keys": ["ctrl+shift+f9"], "command": "xdebug_session_start"},
{"keys": ["ctrl+shift+f10"], "command": "xdebug_session_stop"},
{"keys": ["ctrl+shift+f11"], "command": "xdebug_layout", "args": {"keymap" : true}}
]
把这些放到 preferences-> key bindings-user 里面;
改成自己想要的快捷键就行了!