Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select subset of characters in many lines (column selection) in Eclipse/Android Studio

How to select subset of characters in many lines (column selection) in Eclipse/Android Studio? Ideally without plugins. Shift+Alt+A seems not to be working for me either.

In Notepad++ you can do it with Shift+Alt+(Arrows) or Alt+Left_Mouse (and drag to select)

Please see example below (Column selection I'm after):

Example
(source: softwareninjaneer.com)

Visual Studio and many other tools support it.

Thanks

like image 560
Wojciech Jakubas Avatar asked Jun 22 '14 19:06

Wojciech Jakubas


People also ask

How do I select vertically in Android?

If you need a faster way to add a bunch of carests, you can press Alt while clicking and dragging vertically to select a block or a line. With the keyboard, press Ctrl (Windows & Linux) / Alt (macOS) twice, and then without releasing it, press up or down arrow keys.

How do I select vertically in eclipse?

In Eclipse (I'm using Eclipse June 4.2. 2 at the moment), it is possible to select columns/vertical blocks of text by using Alt+Shift+A to switch to block selection mode. You can then drag over a column/block of text. With a block selected, typing text will replace the selected text in all of the selected rows.

How do I select in eclipse?

You can enable and disable column editing mode via the keyboard shortcut ALT-SHIFT-A . Once enabled you can then use either the mouse to select a block of text, or the keyboard using SHIFT (like a normal keyboard select, except the selection will now be in a block).


4 Answers

I use android studio. You can switch between selection mode by:
alt-shift-insert, or Edit -> Column selection mode.

source.

like image 89
Joanne Chow Avatar answered Oct 19 '22 00:10

Joanne Chow


Without any command you can get selection mode by using mouse drag with press Alt in Android Studio,

Mouse: Alt+MouseDrag

like image 23
varotariya vajsi Avatar answered Oct 19 '22 01:10

varotariya vajsi


Now Alt+Left_Mouse works in Android Studio.

like image 23
johanvs Avatar answered Oct 19 '22 01:10

johanvs


Android Studio column selection on the Mac Book you can use this Shortcut Mac :

Cmd + Shift + 8

source here

like image 10
Kishan Donga Avatar answered Oct 18 '22 23:10

Kishan Donga