I continue to rave about IBM's Eclipse based IDE, WSAD.
Here are the shortcut keys I use most. One of the big tricks with WSAD/Eclipse is learning the shortcut keys, because they don't appear in the right-click menu. Most I've learnt by inspecting the menubar, others from the documentation, but many have come by watching over the shoulder of my colleagues. Here are the ones I use the most.
| Key | Description |
|---|---|
| Ctrl+Shift+O | Organise Imports |
| Ctrl+Shift+M | Import type under cursor |
| Ctrl+Shift+F | Format Code |
| F3 | Open declaration |
| F4 | Open hierarchy |
| Ctrl+Shift+G | Show all references |
| Ctrl+Shift+U | Show references in this file |
| Ctrl+Q | Goto last modified editor position |
| Alt+Left,Alt+Right | Goto prev/next editor position in history |
| Alt+Shift+M | Extract Method |
| Alt+Shift+R | Rename method/variable |
| Ctrl+L | Goto Line number |
| Ctrl+O | Pop-up Outline |
| Ctrl+Space | Complete whatever you're typing. |
(These all work from the Java perspective, and some work in other perspectives too.)
So, what shortcut keys do you use? Have I missed any of your favourites?
Comments
Ctrl-Shift 'T' - Open Type
Ctrl-Shift 'R' - Open Resource
both of these are pretty much essential when working on a large project.
Ctrl-F11: re-run last launched [insert noun here; the relevant menu item in the Run menu suggests the Eclipse developers don't know what to call them either].
Ctrl-1: miscellaneous fixes and suggestions. I tend to use the local rename for local variables and private methods rather Alt-Shift-R, because it's just plain quicker, and doesn't bring up that annoying "well are you going to save those files or what?" dialog.
RodeoClown has already mentioned Ctrl-Shift-R and Ctrl-Shift-T. I can't overstate how much of an improvement it was to discover those over clumsily navigating through the Package Explorer to find a class, especially when I can't remember exactly which package it's in.
Ctrl-F6 - Pops up a list of all the files you have open.
Useful for those times when you're working on so many files that only the first 4-5 characters of the filename shows up in the editor tabs. :-)
Navigating to Matching braces:
Alt+Shift+P
Well not WSAD, but in Eclipse 3 the Open Call Hierarchy Ctrl-Alt-H (not sure if that works with the ver 2 plugin)
Navigating to Matching braces
Correction:
Ctrl+Shift+P
Alt-down - Move a line down
Alt-up - Move a line up
Ctrl-Alt-down - Dupe line down
Ctrl-Alt-up - Dupe line up
Ctrl-shift-down - Goto next method (when you're on a method declaration line)
Ctrl-J - Incremental search
Ctrl-shift-J - Backward Incremental Search
Changing Case or letters
ctrl+shift+y - LowerCase letter
ctrl+shift+x - Uppercase
Ctrl+K - Recursive search
Ctrl+Shift+K BackWard Recursive search
CTRL+/ - Comment/remove comment the selected line/s with "//" tag.
CTRL+Shift+/ - Comment the selected line/s with "/*" and "*/" tags.
CTRL+Shift+\ - Remove comment tags "/*" and "*/".
ctrl+shift+w -> close all editor windows :)
I don't know in wsad, but on eclipse this works.