最佳答案
以 JSON 格式转到 Visual Studio Code 的设置页面,然后删除该行
"source.fixAll": true,
你会在这个对象里面找到这条线"editor.codeActionsOnSave": {
},
关于visual-studio-code - 保存文件时禁用 vscode 清除/删除未使用的代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47767727/