Reputation: 193462
I'm using Eclipse PDT for PHP.
Let's say I have an error in "rightsManager.php on line 145", and I have hundreds of files in dozens of directories in my project, what is the fastest way to go to that file and line number?
I can search through the text of all files with CTRL-H but how do I quickly search through the file names? (like CTRL-H in Firefox where it gives you a search box for past urls).
CTRL-SHIFT-R, thanks Paul!
Upvotes: 2
Views: 748
Reputation: 9825
(warning: shameless marketing ahead)
The Open Resource (Ctrl+Shift+R) is a great solution indeed. If you are looking for something more powerful, we have an Eclipse plugin called nWire for PHP. It also provides quick-search, but you can search for everything: files, classes, variables, fields, methods, functions... everything.
Also, once you find the file you were looking for, you can select it and see all its' references in other files. You might find it useful.
Upvotes: 0
Reputation: 301115
Ctrl+Shift+R should pop open a resource finder in any flavour of Eclipse, type your filename pattern and you'll get your file in seconds. You can jump to a line with Ctrl+L
alt text http://www2.cwcweb.com-a.googlepages.com/openresource.png
Nice summary of other shortcuts here.
Upvotes: 4
Reputation: 5190
If you open up search with Ctrl+H, leave your text criteria as * and then you fill out the file name pattern field with the name of the file you're looking for, it will search by filename. However, it will not point you to a line number.Search http://img19.imageshack.us/img19/4597/searcht.png
Upvotes: 1
Reputation: 401182
What about Ctrl+Shift+M
to search through the functions names, or Ctrl+Shift+R
to search through the files names ?
Then, Ctrl+L
to go to the line you want.
Unfortunatly, I don't think you can do "goto file + goto line" using only one dialog :-(
For more things like these, open the "Navigate" menu ;-)
Edit : If you are looking for ways to do things faster, you might also be interested in the Eclipse PDT “tips” ? question I asked a while ago ;-) (there are not many answers, though :-( )
Upvotes: 2