Can't get correct autoformat on save in Visual Studio Code with ESLint and Prettier

后端 未结 7 908
囚心锁ツ
囚心锁ツ 2021-01-30 03:16

in Visual Studio Code with ESLint and Prettier when working on .vue files, it seems I can\'t get vue/max-attributes-per-line to auto-fix correctly.

For example, with vue

7条回答
  •  臣服心动
    2021-01-30 03:52

    i tried this things and it didn't worked.

    typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
        "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
        "typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
    

    but it at last i tried this. and worked "diffEditor.wordWrap": "off",

提交回复
热议问题