Friday, December 14, 2012

Shortcuts for Java-in-Eclipse programmers!

I was working with a friend recently on a project, and I noticed how much time we were actually spending, searching around in the package explorer, finding the right file to edit or view. Thus I google'd for eclipse shortcuts and came upon a page telling about "10 awesome shortcuts.."

The first being Open Resource -> "Open any file quickly without browsing for it in the Package Explorer" : CTRL + SHIFT  + R

press the shortcuts and start typing the name of the file you want to find, and it will appear in the window, along with all the other files sharing the beginning of their name with the file.

an asterisk > * < can be used as a wild card for a string, if you want to find cakeFile.java, but can't remember the first part of the name, write *File, and it will appear. Same goes for a single character, >?< is used instead, so ?akeFile will show the files containing any character + akefile. Ca*le can also be used, as can C?keFile. The search also isn't case sensitive, meaning that CaKeFiLe will also result in finding the file.

The 10 shortcuts can be found on this page::
http://rayfd.me/2007/05/20/10-eclipse-navigation-shortcuts-every-java-programmer-should-know/

No comments:

Post a Comment