VSCode single to double quote automatic replace

前端 未结 22 1550
死守一世寂寞
死守一世寂寞 2021-01-30 12:03

When I execute a Format Document command on a Vue Component.vue file VSCode replace all single quoted string with double quoted string.

In my specific case

22条回答
  •  感动是毒
    2021-01-30 12:40

    Well for me both options solved the issue:

    1. By adding inside the .prettierrc - "singleQuote": true

    2. Or by adding following inside the package.json -> "prettier": { "singleQuote": true }

    Though I tried also adding .prettierrc.js and have following

    module.exports = { singleQuote: true };

    This didn't worked.

提交回复
热议问题