列选择,如 Visual Studio [英] Column selection like Visual Studio

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

问题描述

是否可以选择像 Visual Studio(或 Notepad++ 或其他文本编辑器)这样的多行列?

Is it possible selecting multi-line columns like Visual Studio (or Notepad++ or other text editor)?

如果我按下 shift+Alt 按钮并移动 箭头 按钮,Visual Studio 代码的行为与其他文本编辑器不同.

If I press shift+Alt buttons and move the arrows button the behavior of Visual Studio code is different from the other text editor.

谢谢!

推荐答案

v1.43 在新的列选择模式"中带来了您正在寻找的内容.演示:

v1.43 brought what you are looking for in a new "Column Selection Mode". Demo:

参见 https://github.com/microsoft/vscode/issues/91249:

选中此项时,用鼠标选择将创建一列选择和 Shift+箭头键和 Shift+Page Up/Down 键也将创建列选择.

While this is checked, selecting with the mouse will create a column selection and Shift+arrow keys and Shift+Page Up/Down keys will also create column selection.

<小时>

还有 https://github.com/microsoft/vscode/issues/91361 在启用/禁用列选择模式时,它将充当预先存在的选择的切换.因此,当启用该模式时,当前选择将被修改为列选择(包括多个光标),反之亦然.


Also https://github.com/microsoft/vscode/issues/91361 which would act as a toggle for preexisting selections when enabling/disabling Column Selection Mode. So a current selection would be modified to a column selection (including multiple cursors) when enabling the mode and vice-versa.

https://github.com/microsoft/vscode/issues/91362 启用列选择模式 的位置将在状态栏中显示.

And https://github.com/microsoft/vscode/issues/91362 where enabling the Column Selection Mode would be indicated in the Status Bar.

参见 https://code.visualstudio.com/updates/v1_43#_列选择模式

您还可以从状态栏中禁用列选择模式.

You can also disable Column Selection mode from the Status bar.

这篇关于列选择,如 Visual Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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