Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Editor to select text that is inside a rectangle

Often I find myself with some text where I want to exclude a certain part of the text, say the first three characters of 40 lines. The fastest way I could think of to do this would be to draw a rectangle and copy the text. I am mostly using Windows, but I am sure grep or something similar could do this with a tiny bit of code. My best way of doing this is to open Command Prompt. Then run "Edit" (yes the good old one). Then paste the text in there (this actually takes a significant amount of time). Then I am able to select the rectangle I am after.

Is there any other editors that support this feature? I am familiar with Notepad++.

like image 573
David Avatar asked Aug 30 '09 22:08

David


1 Answers

You can select a rectangular area to cut/copy in Visual Studio be pressing the Alt key prior to making your selection with the mouse or (Shift +) cursor keys. See How to: Select and Change Text.

like image 89
Dan Blanchard Avatar answered Oct 02 '22 20:10

Dan Blanchard