在 Eclipse/Android Studio 中选择多行(列选择)中的字符子集

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24355137/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:45:41  来源:igfitidea点击:

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

androideclipseselection

提问by Wojciech Jakubas

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.

如何在 Eclipse/Android Studio 中选择多行(列选择)中的字符子集?理想情况下没有插件。Shift+Alt+A 似乎也不适合我。

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

在 Notepad++ 中,您可以使用 Shift+Alt+(Arrows) 或 Alt+Left_Mouse(并拖动以选择)

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

请参见下面的示例(我要选择的列):

Example
(source: softwareninjaneer.com)

例子
(来源:softwareninjaneer.com

Visual Studio and many other tools support it.

Visual Studio 和许多其他工具都支持它。

Thanks

谢谢

回答by Joanne Chow

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

我使用安卓工作室。您可以通过以下方式在选择模式之间切换:
alt- shift-insert或 Edit -> Column selection mode。

source.

来源

回答by varotariya vajsi

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

在没有任何命令的情况下,您可以通过在Android Studio 中使用鼠标拖动并按 Alt 来获得选择模式,

Mouse: Alt+MouseDrag

鼠标:Alt+MouseDrag

回答by johanvs

Now Alt+Left_Mouse works in Android Studio.

现在Alt+Left_Mouse 在 Android Studio 中工作。

回答by Wojciech Jakubas

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

根据此线程: 如何在 Eclipse 中启用列选择模式?

or this one: Block selection in eclipse

或者这个:eclipse 中的块选择

Use: Alt+Shift+A

使用: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).

块选择自 Eclipse 3.5 起可用。您可以通过 Alt+Shift+A 在标准和块选择之间切换(或按 Ctrl+3,键入“切换块”并选择“切换块选择”命令)。

回答by Wilhelm

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

要进入列选择模式,请按alt- shift- insert

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

要让插入符号占据多行,只需按住Shift并按下向上或向下箭头键。然后,您可以Shift像往常一样按住向右键或向左键以水平选择文本。

To exit column selection mode, press Esc.

要退出列选择模式,请按Esc

回答by Delowar

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

选择更多列字符的快捷键:shift+向上或向下箭头(定义更多行)然后shift+向左或向右箭头选择文本

回答by Segun Wahaab

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)

只需在光标位于文件/类中时右键单击,然后从出现的选项列表中选择/取消选择“列选择模式”(通常是列表中的第五个选项)

回答by Kishan Donga

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

Mac Book 上的 Android Studio 列选择你可以使用这个快捷 Mac :

Cmd + Shift + 8

Cmd + Shift + 8

source here

来源在这里