Go to method description

Is it possible to get a PHP method declaration by calling a method in Sublime Text?

// pressing some keys combination should navigate me // to the method declaration. If it defined in some other file, // the file should be opened. $foo->doSomething(); 
+56
sublimetext
Mar 07 2018-12-12T00:
source share
4 answers

Edit (June 2016): Below is the Erik255 answer below when Sublime Text 3 is missing. Please support him. Since this is the currently accepted answer, these are repeating steps:

  • Use "File> Open Folder" or "Project> Add Folder to Project" (you may need to create a project first)
  • F12 will go to any character in the project



Original answer:

As in Sublime Text 2, you can use Goto anything ( CTRL + R ).

(only the current page is searched)




+92
Jun 12 2018-12-12T00:
source share

Sublime 3 is the answer! It has a geto_definition function, which works fine while you add a project with a source folder (so that they can be indexed). I use it with scala + lift, PHP, Python.

By default, it is bound to F12 , and without setting up a project, it searches only in the actual file.

This was an absent opportunity to leave Eclipse and Netbeans.

+90
Sep 30 '13 at 8:39
source share

There is a CTags package for Sublime Text that allows you to use a level index file .ctags .tags to go to the definition of the character under the cursor by pressing ctrl + t twice: https://github.com/SublimeText/CTags

+14
Jan 19 '14 at 15:53
source share

There is a large plugin called SublimeCodeIntel with the following features:

  • Go to symbol definition - go to the file and symbol definition line.
  • Import autocomplete - shows autocomplete with available modules / symbols in real time.
  • Function tooltips - displays information in the status bar about the working function.
+3
Apr 29 '15 at 12:17
source share



All Articles