Visual Studio has the ability to copy arbitrary blo开发者_JAVA技巧cks of text (not across lines) by holding the alt-key...Is there anything similar in Eclipse?
Thxs.
Yep - Look for the "Toggle Block Selection" command (Alt+Shift+A). That switches the editor between column mode and line mode.
You can make rectangular selections and even type on several lines at once. Very handy.
The feature you are looking for is known as Block Selection and is available in Eclipse since 3.5. Here is a blog article detailing it's usage
- http://www.vasanth.in/2009/03/31/eclipse-tip-block-selection-mode/
For Eclipse 3.5 M5 and above, the block selection mode can be toggled using the toolbar icon highlighted bellow
(source: vasanth.in)
or using the shortcut key Alt+Shift+A.
精彩评论