编辑器选择矩形内的文本 [英] Editor to select text that is inside a rectangle

查看:82
本文介绍了编辑器选择矩形内的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常发现自己想排除一部分文本,例如40行的前三个字符。我想到的最快的方法是绘制一个矩形并复制文本。我主要使用Windows,但是我敢肯定,grep或类似的东西可以用一点点代码就能做到。我最好的方法是打开命令提示符。然后运行编辑(是好的旧版本)。然后在其中粘贴文本(这实际上要花费大量时间)。然后,我可以选择要放置的矩形。

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.

是否有其他支持此功能的编辑器?我熟悉Notepad ++。

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

推荐答案

您可以在Visual Studio中按ALT键选择要剪切/复制的矩形区域。使用鼠标或(Shift +)光标键进行选择。请参见如何:选择和更改文本

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

这篇关于编辑器选择矩形内的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆