如何在编辑器和ide中选择列以列删除,插入或替换一些字符?

编辑:

原子 notepad++ 凯特 VIM 崇高 Emacs 文本编辑 翡翠编辑器 文本编辑器 MCEdit jEdit Nedit

ide:

NetBeans Eclipse Visual Studio IntelliJ IDEA Flash Builder Aptana Studio


当前回答

在textpad。

转到页面的左上方。 按住shift键 现在使用右箭头键选择列。 现在点击“向下箭头”键。 整个列都会被选中。

其他回答

该特性在Netbeans的旧版本(最高7.1)中不可用,并且该插件不再受支持。

NetBeans 6.9现在有一个插件。

notepad++, Visual Studio和其他一些:Alt +拖动。 vim: Ctrl + v或(奇怪的是)四键点击拖动。在windows中:Ctrl + Q(因为Ctrl + V是粘贴的标准)

SublimeText 2、3和4

使用鼠标

在不同的平台上使用不同的鼠标按钮:

OS X

Left Mouse Button + Option
OR: Middle Mouse Button
Add to selection: Command
Subtract from selection: Command+Shift

窗户

Right Mouse Button + Shift
OR: Middle Mouse Button
Add to selection: Ctrl
Subtract from selection: Alt

Linux

Right Mouse Button + Shift
Add to selection: Ctrl
Subtract from selection: Alt

使用键盘

OS X

CTRL + shift +↑

CTRL + shift +↓

窗户

是ctrl + alt +↑。

ctrl + alt +↓

Linux

是ctrl + alt +↑。

ctrl + alt +↓

来源:SublimeText2文档

在textpad。

转到页面的左上方。 按住shift键 现在使用右箭头键选择列。 现在点击“向下箭头”键。 整个列都会被选中。

在IntelliJ IDEA中,可以使用Alt + Shift + Insert组合来切换选择模式。你也可以通过按住鼠标中间按钮(即滚轮按钮)并拖动来选择列。