Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change xdebug key binding in Sublime Text?

I want to change the key bindings for XDebug plugin in Sublime Text 3. How I can change the key binding for Run, Step over, Step into, Step out, etc.?

like image 826
sgy Avatar asked Jan 15 '14 16:01

sgy


1 Answers

This answer is a more complete answer from user2968356.

To complete this answer, the .sublime-package file is an archive, so it can be decompressed using a ZIP utility. It's not necessary to edit the Default.sublime-keymap in the package, we can copy the key bindings and add it modified to Default.sublime-keymap available from Preferences -> Key Bindings - User in Sublime Text.

And to provide a shortcut, here's the default key binding of XDebug package, modify at will:

{"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}}
like image 131
sgy Avatar answered Oct 31 '22 21:10

sgy