This blog article doesn’t show you only my Top 10 shortcuts using the Eclipse IDE. It gives you also some tipps and tricks how to survive the change from Windows to Mac OS and start developing with Eclipse. I defininitely would recommend you to learn the Eclipse Mac shortcuts. But lets start with my Top 10 (Note: In my list you will find the shortcuts for Mac and Windows) Maybe it helps you to learn it faster.
|Top||Description||Shortcut Mac||Shortcut Windows/Linux|
|1||Auto complete||CTRL – SPACE||CTRL – SPACE|
|2||Open / Search for resources, e.g. files||CMD – SHIFT-R||CTRL – SHIFT-R|
|3||Open / Search for Types||CMD – SHIFT – T||CTRL – SHIFT – T|
|4||Open class outline view||CMD – O||CTRL – O|
|5||Quickfix – result depending on cursor position||CMD – 1||CTRL – 1|
|6||Search for references in the workspace||CMD-SHIFT-G||CTRL-SHIFT-G|
|7||Show type hierarchy||CMD-T||CTRL-T|
|8||Maximize Java editor||CMD-M||CTRL-M|
|9||Delete line||CMD – D – R||CTRL – D – R|
|10||Move line/block||ALT – ↑ or ↓||ALT – ↑ or ↓|
So you see that you don’t have to reinvent the wheel. When you switch from Windows/Linux to Mac than you have to replace the CTRL-Key with the CMD-Key in most cases.
For the physiotherapists of you – the command key is located better than the Ctrl-Key and causes less stress for your hand.
From my point of view I can say that I must switch between Linux, Windows and Mac a few times during a week and I have no problems to remember the shortctus. Maybe the Mac-part is saved in another part of my brain 🙂
One more thing
Maybe you missed something – I didn’t mention the shortcuts for formatting the code and to organize the import statements. Please, be nice to your colleagues and use “Save Actions”! And some other people may miss the “Execute Test”-shortcut. I use Infinitest and do automated builds on Jenkins 😉
What are your favourite shortcuts in eclipse?