Is sublime text2 have a shortcut key or other means to jump faster to function code?

StackOverflow https://stackoverflow.com/questions/21177978

  •  29-09-2022
  •  | 
  •  

سؤال

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