tags:

views:

206

answers:

8
+1  Q: 

Eclipse commands

What is the difference between Ctrl + Shift + R and Ctrl + Shift + T?

Do we have a blog with all eclipse tips/shortcuts?

+5  A: 

Ctrl-Shift-R: Find a resource, which can include XML files, Ant scripts etc.

Ctrl-Shift-T: Find a type, regardless of the filename. (This can be handy if you're looking for a nested type, or basically if you don't want to see anything other than types...)

For Eclipse shortcuts, there are lots of Eclipse keyboard cheat sheets. From the search, I like this PDF, this shorter list, and this list with more explanations.

Jon Skeet
+1  A: 
  • T : open a type (Java artifact)
  • R : open any file (any resource)
grigory
A: 

See the top-voted answer to this question (which looks like a duplicate).

Michael Myers
+3  A: 
  • Ctrl+shift+R is for Open Resource, it searches for all types of files in your projects.
  • Ctrl+shift+T is for Open Type, it looks for Java classes and interfaces.

A great feature of the Open Type dialog is that you can search for say DataInputStream by typing DIS.

Chei
+1  A: 
  • Ctrl-Shift-T will find Java types including those imported in JAR files without source (e.g. Java standard API)
  • Ctrl-Shift-R will only find Java types present as source code, but will also find other kinds of source files such as Text and XML.
Michael Borgwardt
+1  A: 

To see all key bindings look under Window -> Preferences -> General -> Keys.

starblue
A: 

Also, Ctrl+Shift+L will show you which keyboard shortcuts are active right then.

nitind
And pressing Ctrl+Shift+L again brings up the settings to modify them.
evnafets
A: 

Blatant advertising coming up:

If you like these two search options, you would love nWire. It is an Eclipse plugin for Java developers which provides, among other things, much stronger search. You get to search as you type for methods, fields, packages... practically everything you have in Java.

As for some more tips, I have written the following article in EclipseZone. I really suggest adding EclipseZone to your RSS feeds reading list. Lots of tips and good stuff there.

zvikico