2014-01-17 77 views

回答

0

可以define mouse & key bindinds in .sublime-mousemap files

在你的情況下,使用此綁定:

{"button": "button1", "count": 1, "modifiers": ["ctrl"],"press_command": "drag_select","command": "goto_definition"} 

我會建議添加shift改性劑,由於CTRL + LEFT CLICK用於「多項選擇」。

{"button": "button1", "count": 1, "modifiers": ["shift","ctrl"],"press_command": "drag_select","command": "goto_definition"} 

不要忘了沒有包裝與[]綁定(它們被定義爲對象的JSON數組)

問候

+0

@aantom,你有沒有試過在一個java文件?我按照你的說法做了並重新開始崇高的text2。按Ctrl + Shift +左鍵單擊,但它根本不起作用 – Harris

+0

@Harris我沒有在Java中測試它,但它應該適用於由Sublime Text(我使用版本3)檢測到的所有功能。您可以在控制檯中使用'sublime.log_commands(True)'確保使用該命令(並理解Sublime Text執行的命令)。您也可以使用'sublime.log_input(True)'來調試擊鍵。 – aanton

+0

@aantom,那已經解決了我的問題http://stackoverflow.com/questions/16235706/sublime-3-set-key-map-for-function-goto-definition對不起,我已經離開了好幾天 – Harris