解决vscode各种异常格式化编译器配置

在vscode中创建vue文件时,若编辑代码时会出现间隔一段时间后自动的格式化内容,会很烦,经反复改查后无果,后来,对编辑器进行全面配置

首先原setting.json文件中的代码是这样的

{
    "files.autoSave": "afterDelay",
    "javascript.updateImportsOnFileMove.enabled": "always",
    "[vue]": {
        "editor.defaultFormatter": "Vue.volar"
    },
    "[typescript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode",
    },
    "workbench.editor.centeredLayoutAutoResize": false,
    "zenMode.restore": false,
    "css.completion.completePropertyWithSemicolon": false,
    "editor.codeActionsOnSave": {
    "source.fixAll.eslint":false 
    },
    "eslint.codeActionsOnSave.rules": null,
    "editor.formatOnSave":false,
    "editor.quickSuggestions": {
       
    },
    "vue3snippets.bracketSpacing": false,
    "git.autofetch": true,
    "diffEditor.renderMarginRevertIcon": false,
    "diffEditor.diffAlgorithm": "experimental",
    "editor.qui

你可能感兴趣的:(vscode,vscode,vue.js,ide)