Search code examples
sublimetext2sublimetextsublimetext3

Sublime Text shortcut for stepping into a function


In Eclipse, one can use ctrl + click to go directly to a function definition.

For example:

f = my_tool.main()

If I ctrl + click on main(), then I will be directed to the code for the main function in the my_tool module.

Is there a equivalent functionality in Sublime Text?


Solution

  • While Daniel's answer is the standard way for a ST user of achieving what you want, you can get a similar feature with the help of SublimeCodeIntel plugin. You can highlight a method or class > right click > goto definition. Or you can configure custom keyboard shortcut so that you can highlight and press the defined keyboard combination and you'll be taken to the method definition.