在 Eclipse 编辑器中选择矩形,就像在任何 Microsoft 工具中一样
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2665429/
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
Rectangular select in Eclipse editor as in any Microsoft tools
提问by Ravisha
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?
在 Word 和 Visual Studio 等 Microsoft 工具中,有一项功能可以通过在选择时按 Alt 键以矩形方式选择文本。Eclipse 中有类似的东西吗?
回答by Peter McG
回答by afalend
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"
正如另一位海报指出的那样 - Android ADT 阻止使用 Alt+Shift+A。一个简单的解决方法是去Window->Preferences->General->Keys
寻找“切换块选择”
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.
从那里,您可以分配自己的热键,不会与 Android 工具冲突。例如,我将它绑定到 Alt+A,效果很好。
As others have said, this will not work in Eclipse 3.4 or earlier. I am using Eclipse 3.7.2, YMMV.
正如其他人所说,这在 Eclipse 3.4 或更早版本中不起作用。我正在使用 Eclipse 3.7.2,YMMV。
回答by Scott Biggs
For the Mac, use ??A(option+command+A) to toggle between the two selection modes. Command-Shift-A will give you something quite unexpected.
对于 Mac,使用??A(option+command+A) 在两种选择模式之间切换。Command-Shift-A 会给你一些意想不到的东西。