VSCODE 内置插件打字稿配置"typescript.format.enable":假不起作用



我在.editorconfig.prettierrc.eslintrc中设置了类似quote_type = single的内容

// workspace
// .vscode/settings.json
{
"editor.codeActionsOnSave": {
"source.fixAll": true,         
},
"typescript.format.enable": false,//did not work
}

问题:如何禁用typescript.format中的VS代码构建并使更漂亮的规则有效

您可以在您的vscode设置中尝试此操作


"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},

最新更新