Note: This information is meant to be generic to Eclipse as a whole but for reference I run ubuntu 10 and eclipse Helios Service Release 2

Eclipse In the company I work for we use

(Eclipse)[http://www.eclipse.org/] as our primary IDE for development. Eclipse is a project by ‘The Eclipse Foundation”. It is an IDE that has MANY, many plug-ins that range from official ones such as the JBoss plugin to make using jboss technologies like drools rules easier to work with to from within eclipse to AnyEdit which is something I use to remove trailing spaces and tabs from my code (for checkstyle purposes)

Hot-Keys By using Eclipse efficiently you can decrease the amount of time you spend on tedious things and increase your productivity significantly Firstly, moving quickly without letting your hands leave the keyboard can speed you up more than you would expect. So lets look at some of those hot-keys, most of which are built into OS’.

``` Ctrl+c :copy Ctrl+v :paste Ctrl+x :cut Ctrl+z :undo Ctrl+y :redo``` ``` Ctrl+(arrow key [left or right]) ``` will move the corresponding direction one word, if you are using programming standard camel-case variables this will move you one word and stop at the beginning or end of the word you are moving over.
``` Shift+(arrow key [left or right]) ``` will move the corresponding direction one space and highlight the space you moved over.
``` Ctrl+Shift+(arrow key [left or right]) ``` will work as you might expect, moving one word the corresponding direction AND highlight the word.
``` Ctrl+Shift+r ``` will open an 'Open Resource' window that allows you to quickly search your workspace. Inside of this search you can use '*' to get a wildcard for any string forward or backward or '?' for any char. Example: applicationContext-ws-stuff.xml could be found by searching app*con*ws-stuff* or even shorter as app*con*stuff* may give you a short list. Again if you are using camel-case you can use just the FIRST-LETTER of the word. Example: java file: TeacherToStudent.java could be found by typing TTS.

``` Ctrl+Shift+t``` will open an 'Open by Type' window that works essentially the same as the Open Resource window
``` Ctrl+Shift+m and Ctrl+Shift+o ``` these two hot-keys are nearly the same, +m will add any existing imports that are missing and +o will add any missing ones and then organize them based on how you have your code-style defined
``` Alt+Shift+r ``` a powerful key combo. This is the variable or method refactor tool in hot-key form!
``` Ctrl+o ``` another very useful hot-key this will open a small search window for the class you are currently in, you can search for variables or methods quickly and reach them even faster!
``` Shift+(home or end) ``` this will highlight the space from your cursor (where ever it may be) to the end or beginning of the LINE you are on.
``` Ctrl+i ``` will correct the indentation of the file, if you have a line or section of code highlighted it will respect this highlighting and only correct indentation of THAT section or line of code!
``` Ctrl+d ``` will delete the line you are on, again if you have a section of code or space highlighted ALL of it will be deleted
An honorable mention, although not a hot-key, is the ``` 'Replace with Local History' and 'Compare with Local History'``` menu items. There have been many times when I changed a significant amount of code only to come back the next day to realize that everything is broken and I have no idea what the method/class I changed was supposed to do. Well this is where your butt will be saved. Right Click the class you changed->Compare/Replace With->Local History will bring up a new menu that will show you past changes (saying it has the history still stored). This has saved my butt in the past and I'm sure it will again in the future. I know a lot of these seem like they may be useless and trivial clicks but once you get used to using them you will be able to move so quickly through your files and eclipse that you will never fall out of 'programming mode' having to copy, paste things around a file.