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

主宰稳场 提交于 2021-02-15 10:42:04

问题


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):


(source: softwareninjaneer.com)

Visual Studio and many other tools support it.

Thanks


回答1:


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

source.




回答2:


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

Mouse: Alt+MouseDrag




回答3:


Now Alt+Left_Mouse works in Android Studio.




回答4:


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

Cmd + Shift + 8

source here




回答5:


To enter column selection mode, press alt-shift-insert.

To get the caret to occupy multiple lines, simply hold Shift and press the up or down arrow key. Then you can hold Shift and press the right or left key to select text horizontally like you usually would.

To exit column selection mode, press Esc.




回答6:


As per this thread: How do I enable the column selection mode in Eclipse?

or this one: Block selection in eclipse

Use: Alt+Shift+A

To switch between Column selection ans stream selection.

Block selection is available since Eclipse 3.5. You can toggle between standard and block selection by Alt+Shift+A (or press Ctrl+3, type "toggle block" and select Toggle Block Selection command).




回答7:


the short cut key to select more column character: shift+up or down arrow (define more line) then shift +left or right arrow for select text




回答8:


Lots of previous answers, but this might be easier or more straightforward as compared to memorizing key shortcuts.

Just Right-click while the cursor is inside a file/class, then select/deselect 'column selection mode' from the list of options that appears (usually the fifth option on the list)



来源:https://stackoverflow.com/questions/24355137/select-subset-of-characters-in-many-lines-column-selection-in-eclipse-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!