Visual Studio Code - Adjust import quotation setting

后端 未结 10 1082
广开言路
广开言路 2021-02-02 04:56

When working in TypeScript in Visual Studio Code, the import suggestion on a type (triggered by space + period) will generate an import using double quotes.

Our TypeScri

10条回答
  •  终归单人心
    2021-02-02 05:28

    I fixed that using Editor config, open your .editorconfig file in your project root directory (if you don't have, create that file) and add this line after the [*]

    [*]
    ...
    quote_type = single
    

    In the wiki you can see the complete list of properties.

提交回复
热议问题