Home Download Buy Blog Forum Support

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

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

Postby rashidul on Thu Nov 15, 2012 4:36 am

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
Code: Select all
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
Code: Select all
$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
rashidul
 
Posts: 3
Joined: Mon Sep 17, 2012 3:50 am

Re: go to classname or fn of a class by clicking on classname

Postby skuroda on Thu Nov 15, 2012 5:40 am

I haven't tried it out yet, but perhaps SublimeCodeIntel?
skuroda
 
Posts: 677
Joined: Fri Oct 05, 2012 8:11 am

Re: go to classname or fn of a class by clicking on classname

Postby iamntz on Thu Nov 15, 2012 6:02 am

Just a quick note: functions inside of classes are named methods. :shock:
iamntz
 
Posts: 908
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 34 guests