Visual Studio Code - Adjust import quotation setting

后端 未结 10 1061
广开言路
广开言路 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:16

    Go to "File > Preferences > Settings" and then add this under user settings:

    "typescript.preferences.quoteStyle": "single",
    "javascript.preferences.quoteStyle": "single"
    

提交回复
热议问题