VSCode single to double quote automatic replace

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

    I dont have prettier extension installed, but after reading the possible duplicate answer I've added from scratch in my User Setting (UserSetting.json, Ctrl+, shortcut):

    "prettier.singleQuote": true
    

    A part a green warning (Unknown configuration setting) the single quotes are no more replaced.

    I suspect that the prettier extension is not visible but is embedded inside the Vetur extension.

提交回复
热议问题