質問

I manage java project by Sublime text2.

I know ctrl + R will jump to the definition of function. But when I look through the code, it is not conveninent to jump by this shortcut key.

Is there some shortcut key or plugin to do this like in eclipse by ctrl + left mouse click?

役に立ちましたか?

解決

You can define mouse & key bindinds in .sublime-mousemap files

In your case, use this binding:

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

I would suggest to add the shift modifier because CTRL + LEFT CLICK is used for "multiple selection".

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

Do no forget to wrap the bindings with [ and ] (they are defined as a JSON array of objects)

Regards

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top