WebStorm/PhpStorm double quotes in TypeScript auto import

后端 未结 6 1571
感动是毒
感动是毒 2020-12-04 06:51

I\'m using TypeScript style with single quotes, double quotes are used exclusively in HTML templates.

WebStorm/PhpStorm auto import adds import statemen

6条回答
  •  有刺的猬
    2020-12-04 07:16

    1st Things need to check in your Tslint file

     "quotemark": [
      true,
      "Double"
    ],
    

    It's should be Double rather than Single because it's Failed TSLint Passed on Project Build.

    Now go to your Setting | Editor | TypeScript | Punctuation

    Select Single from the dropdown and Apply/Ok it.

    Now Congrats your IntellijIDEA are applied Double Quotes on AutoImport.

提交回复
热议问题