Sublime Forum

Go to classname or fn of a class by clicking on classname

#1

Howdy there,

Hope u r doing amazing job using Sublime. One think that i feel necessary to me didn’t find yet on ST2. So I’m here.

Let me describe the scenario:
Say I have created a file named as “user.php” where I define a class and several functions

Class User{
     function Register(){
     }
     function xxxxxx..(){
     }
    ..
    ..
}

then at another file say ins.php I created the instance of that class and call the function of that class

$user = new User;
$user->Register():

//or for static method
$auth = User::Register();

On Eclipse when I’m on ins.php and if i press Ctrl and click on the func name register, it auto opens the user.php file and cursor set to that register function. Is this can be achieved by ST2?

Many Thanks,
Rashidul

0 Likes

#2

I haven’t tried it out yet, but perhaps SublimeCodeIntel?

0 Likes

#3

Just a quick note: functions inside of classes are named methods. :open_mouth:

0 Likes