Feeds:
Posts
Comments

Archive for December, 2007

Expand and contract your selection

A quick way to expand your current selection to include the next most significant element is to use the keystroke Alt-Shift-Up. Try placing your cursor in the middle of a word and hit Alt-Shift-Up. Your selection will expand to include the whole word. Say your word is a parameter in a method signature, hitting Alt-Shift-Up again [...]

Read Full Post »

And now for something completely different

Ok, this is not an Eclipse tip, unless you consider that it can improve the experience of launching the Eclipse application, in which case, yeah, I guess this is an Eclipse tip… false alarm people.
I came across a gem of a program called Launchy. Basically, it allows you to launch programs (and other things) by [...]

Read Full Post »

Fuzzy search

There are 2 essential shortcuts for searching for and opening files: Ctrl-Shift-R and Ctrl-Shift-T. The R version opens any resource that is in your project where the T version opens any type that is referenced by your project (for a java project, that could mean a type that is included in a 3rd party library).
Once you’ve [...]

Read Full Post »

Now where did I put that bug?

I usually take code analysis tools with a grain of salt, and with an extra shot of espresso if it’s early, but one tool that has proven useful many times is FindBugs, which is available as an Eclipse plugin. It’s easy to install because it has an update site – so there’s no excuse, go grab it. [...]

Read Full Post »

So many refactorings to pick from…

Ok, by now we all know that REFACTORING IS GOOD. Say it again! Testify! But with so many refactoring choices in this workaday world, how is a developer to know which one to pick? Well, in a given situation Eclipse will guide you towards refactoring bliss by showing you a neat list of all the applicable refactorings. Select [...]

Read Full Post »

Straight to the implementation

In an earlier blog, I wrote about using F3 to navigate to the declaration of a symbol, say a method. This works great until you hit an interface type and need to find the actual implementation. One way to get the implementation is to hit F4, which shows the type hierarchy in a separate view. The [...]

Read Full Post »

Line dancing

I have never gone line dancing and there’s a good chance that I never will. I’m not trying to make a statement about urban cowboys. Just saying is all.
Eclipse has a way to make lines dance that Billy Ray Cyrus would be envious of. Alt-Up/Down cures your cut & paste blues and automatically indents the [...]

Read Full Post »