Eclipse - Open Resource Shortcut - Ctrl+Shift+R
The biggest time-saver I’ve stumbled upon in Eclipse is the Open Resource Shortcut. Under the Navigate menu is the Open Resource command, shortcut Ctrl+Shift+R, which opens a window that allows you to type a search for any file that exists in your workspace, in your search you can use the ? to replace a single character or * to replace an entire string, the search is amazingly fast. If you’ve worked on a project for a long time you know the names of all of your php, jsp’s, classes, xml files, and properties, and digging through the folder structure in the Navigator and Project Explorer views can be time consuming and annoying. I’ve trained my self to use it so much that IDE’s that don’t have a comparable feature, like JDeveloper, annoy me to no end.

Mar 21st, 2007 at 5:02 pm
Try the ctrl and “-” combination in JDeveloper.
Also note that while standing in the application navigator window you can start typing and it will take you to the file that matches what you are typing.
Mar 21st, 2007 at 6:01 pm
I’ll give it a try, I thought ctrl and - only brought up a list of recently opened files. I’ll also try the navigator, but part of the problem is I deal with files that span multiple projects and the thing I like about the option in Eclipse is it will list files across all open projects.
Mar 22nd, 2007 at 9:21 am
Checked it out on JDeveloper 10 this morning, ctrl and - only gives you the ability to look for a Java Class, this would be equivalent to Open Type in Eclipse, while Open Resource in eclipse searches every file type. The other nice thing in Eclipse is you can make the navigator auto-synch with the file you have currently open so that when you Open the resource you can see where it is in the directory structure. I know you can synch the Navigator in JDeveloper by right clicking on the open page and choosing select in Navigator, but from a Usability perspective that’s just a pain.
Apr 18th, 2007 at 11:38 am
Hi,
I agree with you that, it’s a cool feature, i am happy with the feature, but facing small problem when i search using ctrl shift R it is actually searching in all project that’s why it also searches in build folder, sometimes by mistake if we open it and modify, you might loose all your modifications once you build it.
can we configure the open resource in eclipse? probably i want to add my path within that only it should search.
Thanks in advance
Apr 18th, 2007 at 12:27 pm
Have you read my article Make Eclipse and Tomcat play nice together, running a Server in the IDE, I’m not sure how your build directories for your project are set up but this may help. I build my classes in my web project directly into the /WEB-INF/classes and I also make the server point directly into the WebContent directory. Since there’s no duplication of jsp’s and classes are in the classes directory Open Resource I don’t seem to have the problem you describe.
Apr 26th, 2007 at 3:16 am
ctrl shift t is good too (open type)
Allows you to search for class files inside jars
Apr 26th, 2007 at 7:40 am
Combine ctrl-shift-t with Jadclipse and Front End Plus and you can decompile those classes inside the jars. Thanks Lance.
Aug 16th, 2007 at 6:52 pm
>>>The other nice thing in Eclipse is you can make the navigator auto-synch with the file you have currently open
In JDeveloper this is done with Alt+Home
Aug 16th, 2007 at 7:17 pm
Shay,
I know about being able to synch an individual file, but can you make the navigator follow you automatically as you switch between open files?
Nov 18th, 2007 at 12:51 pm
Well, actually using the latest 11g Tech preview 2, and there’s a new shortcut which is worth lots!
Im on mac, but windows should be alt-ctrl– to be able to access the file list. Autocompletion is there!
Go to navigate->Go to file if the shortcut’s i posted’s not the right one.
Right on Oracle!!
Nov 19th, 2007 at 8:14 am
It’s about time, now do they let you navigate to any resource in the workspace or does it still only work for the currently selected project?
Apr 16th, 2008 at 11:10 pm
Ctrl Shift R is really a handy feature in eclipse. But I have one question here. When I do it, it shows me all the java as well as class files and I don’t want to see the .class files. Only java or may be other extensions linke .xml, .properties etc.
Apr 17th, 2008 at 7:18 am
I personally haven’t run into this issue, but have heard of it happening before. I think it might have to do with your build path and making sure that the src directory is correctly specified and that you’re output directory is a different directory than your source directory, such as bin for java project or /WEB-INF/classes for a web project.
Aug 25th, 2008 at 6:44 pm
You can mark files or directories derived if you want them to be excluded from the Open Resource list (fortunately it works recursively for directories).
Oct 22nd, 2008 at 9:38 pm
The problem vishwas mentions drives me nuts. It seems to happen in one eclipse install but not another, even on the same machine. I have no idea how to get rid of showing the .class files in the open resource dialog.
Dec 1st, 2008 at 6:05 am
Eclipse goto file plugin http://muermann.org/gotofile/ gives the same functionality, additionally you can configure, what directories, file should be excluded, using regex.