开发者

Visual Studio Alt-Copy in Eclipse

开发者 https://www.devze.com 2022-12-16 12:12 出处:网络
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?

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

Visual Studio Alt-Copy in Eclipse


(source: vasanth.in)

or using the shortcut key Alt+Shift+A.

0

精彩评论

暂无评论...
验证码 换一张
取 消