文件(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 }