如何使用语法高亮关闭复制?

Wos*_*osi 5 visual-studio-code vscode-settings

在 Visual Studio Code 1.10 版中引入了语法高亮复制

我大部分时间都不想使用它,但我找不到关闭它的方法。即使我没有为editor.action.clipboardCopyWithSyntaxHighlightingActionVSCode设置键绑定,也总是使用语法突出显示进行复制。

如何关闭它以便我只复制纯文本?

小智 7

转到settings.json文件并添加

"editor.copyWithSyntaxHighlighting":false
Run Code Online (Sandbox Code Playgroud)

https://github.com/microsoft/vscode/issues/20837