Rectangular select in Eclipse editor as in any Microsoft tools

EclipseEditor

Eclipse Problem Overview


In Microsoft tools such as Word and Visual Studio, there is a feature to select text in a rectangle manner by pressing the Alt key while selecting. Is there anything like that in Eclipse?

Eclipse Solutions


Solution 1 - Eclipse

Pressing Shift + Alt + A toggles Block or Column selection mode in Eclipse 3.5 or later.

Other than that you can try the 'Columns 4 Eclipse' Plug-in for Eclipse 3.3.1 here.

Solution 2 - Eclipse

As another poster noted- the Android ADT blocks the use of Alt+Shift+A. An easy fix is to go to Window->Preferences->General->Keys and look for "Toggle Block Selection"

From there, you can assign your own hotkey that will not conflict with the Android tools. For example I tied it to Alt+A, which works just fine.

As others have said, this will not work in Eclipse 3.4 or earlier. I am using Eclipse 3.7.2, YMMV.

Solution 3 - Eclipse

For the Mac, use A (option+command+A) to toggle between the two selection modes. Command-Shift-A will give you something quite unexpected.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRavishaView Question on Stackoverflow
Solution 1 - EclipsePeter McGView Answer on Stackoverflow
Solution 2 - EclipseafalendView Answer on Stackoverflow
Solution 3 - EclipseSMBiggsView Answer on Stackoverflow