VSCode single to double quote automatic replace

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

    For projects that use .editorconfig file by default. The formatter will ignore the rules in the settings and use the rules in .editorconfig, then you can either:

    • Remove .editorconfig file, and use your VSCode settings.
    • Add quote_type = single to the .editorconfig file regarding your file type. You can also set quote_type value to double or auto.

提交回复
热议问题