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.
March 21st, 2007 - 17:02
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.
March 21st, 2007 - 18:01
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.
March 22nd, 2007 - 09:21
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.
April 18th, 2007 - 11:38
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
April 18th, 2007 - 12:27
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.
April 26th, 2007 - 03:16
ctrl shift t is good too (open type)
Allows you to search for class files inside jars
April 26th, 2007 - 07:40
Combine ctrl-shift-t with Jadclipse and Front End Plus and you can decompile those classes inside the jars. Thanks Lance.
August 16th, 2007 - 18:52
>>>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
August 16th, 2007 - 19:17
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?
November 18th, 2007 - 12:51
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!!
November 19th, 2007 - 08:14
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?
April 16th, 2008 - 23:10
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.
April 17th, 2008 - 07:18
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.
August 25th, 2008 - 18:44
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).
October 22nd, 2008 - 21:38
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.
December 1st, 2008 - 06:05
Eclipse goto file plugin http://muermann.org/gotofile/ gives the same functionality, additionally you can configure, what directories, file should be excluded, using regex.
March 22nd, 2010 - 12:35
have just found out you a search for a resource in JDeveloper by doing ctrl+alt+minus
May 11th, 2010 - 06:58
Its very easy to open only java files using CTRL+SHIFT+R
TYPE as YourJavaFileName*.java
June 25th, 2010 - 22:30
D.Sai – having to type *.java is as much of a pain as having the class files there to begin with… Theres quite a good solution to the problem if you look here:
http://stackoverflow.com/questions/2632419/how-do-i-hide-class-files-from-the-open-resource-dialog-in-eclipse
Basically you check the properties on your build/bin dirs and mark them as ‘derived’ then make sure that in your open resource settings you dont show derived resources.
January 8th, 2011 - 08:50
here is my list of useful eclipse shortcut I would rather say very useful and practical eclipse shortcut
Thanks
Javin Paul
FIX Protocol tutorial