Home Download Buy Blog Forum Support

Lookup class definition

Lookup class definition

Postby greg on Fri Nov 09, 2012 4:51 pm

Hello Community

After evaluating Sublime, I'm now evaluating StormPHP. It has a feature I didn't find in Sublime:

- when I hit ctrl-N, a box open, I can type the beginning of a class name and jump directly to its definition.

Is there a way to do that with Sublime?

I know I can jump to a file by its name (nice but not that useful), or lookup a definition of class whose name is already written ; what I miss is the popup for typing the class lookup.

TIA

greg
greg
 
Posts: 34
Joined: Fri Sep 14, 2012 10:00 am

Re: Lookup class definition

Postby Eduan on Fri Nov 09, 2012 7:49 pm

Do you by any chance mean PhpStorm?
Check out my blog and website: EduanTech.com (currently undergoing some facial and organs makeover...)
Also check out my profiles: GitHub - Greduan | BitBucket - Greduan
Eduan
 
Posts: 140
Joined: Sun Oct 14, 2012 4:05 pm

Re: Lookup class definition

Postby greg on Mon Nov 12, 2012 5:06 pm

Yes I do, sorry :)

So how can I acheive the same feature in ST2? :)
greg
 
Posts: 34
Joined: Fri Sep 14, 2012 10:00 am

Re: Lookup class definition

Postby pier on Mon Nov 12, 2012 5:56 pm

In Sublime you can navigate files an functions with ctrl/cmd + P or directly functions in the same file with ctrl/cmd + E.

If you don't press enter after watching, you can press escape, and go back to where you were and keep on writing.

I'm sure what you are looking for is perfectly possible with a python script... it's even probable that someone has already done a package for that. Install the Package Manager (google it) and then look for other PHP packages that extend the default PHP behaviour. There are tons of community packages with custom functionalities.
pier
 
Posts: 92
Joined: Fri Jun 15, 2012 2:47 am

Re: Lookup class definition

Postby skuroda on Tue Nov 13, 2012 12:13 am

I've never used PhpStorm, but is it like the functionality built into the CTags plugin. Specifically the "Show Symbols Multi" functionality? I've never used it with PHP, but I have in some of the Python code I have written. I think that is what you are looking for. There may be other plugins with similar functionality, this one just came to mind.
skuroda
 
Posts: 690
Joined: Fri Oct 05, 2012 8:11 am

Re: Lookup class definition

Postby AGS on Tue Nov 13, 2012 1:40 am

pier wrote: or directly functions in the same file with ctrl/cmd + E.



Shouldn't this be
Code: Select all
super + R
?
AGS
 
Posts: 32
Joined: Mon Aug 20, 2012 5:58 pm

Re: Lookup class definition

Postby prmaple on Tue Nov 13, 2012 5:24 am

AGS wrote:
pier wrote: or directly functions in the same file with ctrl/cmd + E.



Shouldn't this be
Code: Select all
super + R
?


I guess he mistyped,

and Ctrl+R on windows.
prmaple
 
Posts: 89
Joined: Sun Dec 25, 2011 11:06 am
Location: Melbourne

Re: Lookup class definition

Postby greg on Fri Nov 16, 2012 11:47 am

Yes Ctags more or less provides this feature. It's not easy to set up, and I'm not sure about how it's updated. I'll try to look it further.
greg
 
Posts: 34
Joined: Fri Sep 14, 2012 10:00 am

Re: Lookup class definition

Postby pier on Sat Nov 17, 2012 12:52 am

prmaple wrote:I guess he mistyped


Ooops

Yes he mistyped.

:)
pier
 
Posts: 92
Joined: Fri Jun 15, 2012 2:47 am


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests