VSCode single to double quote automatic replace

前端 未结 22 958
死守一世寂寞
死守一世寂寞 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:54

    It looks like it is a bug open for this issue: Prettier Bug

    None of above solution worked for me. The only thing that worked was, adding this line of code in package.json:

    "prettier": {
        "singleQuote": true
      },
    

提交回复
热议问题