文件(File)-->首选项(Preferences)-->设置(Settings)-->搜索“Copy”-->取消对Editor: Copy With Syntax Highlighting的勾选即可(图形界面的设置内容)。
点击页面当中的“open the default settings JSON”,可以产看代码界面的设置内容:
1 { 2 // Controls whether syntax highlighting should be copied into the clipboard. 3 "editor.copyWithSyntaxHighlighting": true, 4 }