In IntelliJ, if the editor cursor is in the middle of a word like this w|ord
and you press Ctrl+W, it will highlight the whole word which allows you to highlight the whole word without moving the cursor to the end or the beginning of the word then do ctrl+shift+left/right arrow.
Is there an equivalent shortcut in Eclipse?
IntelliJ IDEA automatically suggests a predefined keymap based on your environment. Make sure that it matches the OS you are using or select the one that matches shortcuts from another IDE or editor you are used to (for example, Eclipse or NetBeans).
In Eclipse, go to Window->Preferences, and select General->Appearance. You can change the font in there. I don't know what IntelliJ uses, but you can probably look it up in IntelliJ, and just match it.
CTRL+O in eclipse searches in current class/file. CTRL+F12 is the correct equivalent.
You are looking for Alt+Shift+Up (Select Enclosing Element)
I'm using Eclipse Helios and you can change de shortcut in Window->Preferences->General->Keys
in eclipse use ALT+SHIFT+→ or ← arrow
On Mac it is Ctrl+Shift+up and Ctrl+Shift+down
However, in any platform it is not nearly as clever as IntelliJ's Ctrl+W
For example, when you are inside a bracket, Ctrl+W excludes the brackets, whereas Eclipse includes the brackets, so there is no easy way to select everything within a bracket. It's the same problem with quotes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With