2014年9月11日 星期四

Install Google Plugin for Eclipse

Eclipse -> Help -> Install New Software
    https://dl.google.com/eclipse/plugin/4.4


Preferences -> General -> Workspace
    Change default codepage to UTF-8

Hotkey for Eclipse
    Ctrl+s, save file
    Alt+/, auto complete
    Ctrl+Shift+F, auto indent code
    Ctrl+d, delete line
    Ctrl+/, comment line

My Top 10 shortcuts for Eclipse on Mac OS X and Windows … and how you survive the change from Windows to Mac

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.
TopDescriptionShortcut MacShortcut Windows/Linux
1Auto completeCTRL – SPACECTRL – SPACE
2Open / Search for resources, e.g. filesCMD – SHIFT-RCTRL – SHIFT-R
3Open / Search for TypesCMD – SHIFT – TCTRL – SHIFT – T
4Open class outline viewCMD – OCTRL – O
5Quickfix – result depending on cursor positionCMD – 1CTRL – 1
6Search for references in the workspaceCMD-SHIFT-GCTRL-SHIFT-G
7Show type hierarchyCMD-TCTRL-T
8Maximize Java editorCMD-MCTRL-M
9Delete lineCMD – D – RCTRL – D – R
10Move line/blockALT – ↑ 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?

沒有留言:

張貼留言