Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij ctrl+w equivalent shortcut in Eclipse

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?

like image 823
Glide Avatar asked Nov 24 '10 06:11

Glide


People also ask

Can we use IntelliJ shortcuts 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).

How do I make my Eclipse look like IntelliJ?

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.

What is Ctrl O in Eclipse?

CTRL+O in eclipse searches in current class/file. CTRL+F12 is the correct equivalent.


3 Answers

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

like image 176
javilaureano Avatar answered Oct 02 '22 15:10

javilaureano


in eclipse use ALT+SHIFT+ or arrow

like image 23
oshai Avatar answered Oct 02 '22 15:10

oshai


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.

like image 30
Victor Grazi Avatar answered Oct 02 '22 15:10

Victor Grazi