2014-01-15 60 views

回答

19

這個答案是比較完整的answer from user2968356

要完成此答案,.sublime-package文件是一個存檔,因此它可以使用ZIP實用程序解壓縮。沒有必要編輯包中的Default.sublime-keymap,我們可以複製密鑰綁定並將其修改爲Default.sublime-keymap,可從首選項密鑰綁定 - 用戶以崇高文本。

,並提供一個快捷方式,這裏的默認密鑰的XDebug包的結合,修改隨意:

{"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}} 
2

在崇高菜單中轉到Preferences -> Browse Packages...

這將打開Packages文件夾。回去一個文件夾,你應該看到另一個文件夾Installed Packages

爲xdebug找到.sublime-package,通常根據您通過軟件包控件安裝的軟件包名稱進行命名。

在裏面找到一個Default.sublime-keymap文件,它包含所有的鍵綁定。

更改您的需求,保存並重新啓動崇高。


乾杯,希望這有助於!

0

對於Max用戶,你可能需要更換「CTRL」與「超級」,這是命令鍵。以下是我的設置:

[ 
    {"keys": ["super+f16"], "command": "xdebug_breakpoint"}, 
    {"keys": ["shift+f16"], "command": "xdebug_conditional_breakpoint"}, 
    {"keys": ["super+shift+f5"], "command": "xdebug_continue", "args": {"command": "run"}}, 
    {"keys": ["super+f13"], "command": "xdebug_continue", "args": {"command": "step_over"}}, 
    {"keys": ["super+f14"], "command": "xdebug_continue", "args": {"command": "step_into"}}, 
    {"keys": ["super+f15"], "command": "xdebug_continue", "args": {"command": "step_out"}}, 
    {"keys": ["super+shift+f9"], "command": "xdebug_session_start"}, 
    {"keys": ["super+shift+f17"], "command": "xdebug_session_stop"}, 
    {"keys": ["super+shift+f18"], "command": "xdebug_layout", "args": {"keymap" : true}} 
] 
相關問題