如何在 Visual Studio Code 中返回单光标模式

Neb*_*Neb 1 keyboard-shortcuts visual-studio-code

在 Visual Studio 中,可以将光标放在多行上以便并行编辑它们。在我的操作系统 (Ubuntu) 上,启用多光标模式的快捷方式是Ctrl+ Shift+UpCtrl+ Shift+ Down

是否有返回单光标模式的快捷方式?

官方文档中没有关于此功能的任何内容,既不用于激活,也不用于停用。为了使这个问题尽可能更普遍,因为 Visual Code 的快捷方式依赖于操作系统,我正在寻找涵盖所有主要操作系统的答案。

fbe*_*ens 6

我不在 linux 上,但它应该是escape,它绑定到 Command workbench.action.terminal.clearSelection

你可以检查这个 Keymap Shortcuts

{
  "key": "escape",
  "command": "workbench.action.terminal.clearSelection",
  "when": "terminalFocus && terminalTextSelected && !terminalFindWidgetVisible"
}
Run Code Online (Sandbox Code Playgroud)