VSCode single to double quote automatic replace

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

    I had the same issue in vscode. Just create a .prettierrc file in your root directory and add the following json. For single quotes add:

    {
      "singleQuote": true
    }
    

    For double quotes add:

      {
          "singleQuote": false
      }
    

提交回复
热议问题