Change generated import from double quote to single quote

[Issue]
The generated import statements for typescript in intellij IDE is im double quote, the style guidance of typescript complaints on that, so it needs to be changed to single quote.

[Approach for Intellij 2016]
Intellij IDEA -> Preferences-> Editor -> TypeScript -> Other -> Generated Code -> Quote marks: Single quote -> apply -> o.k.

change-idea-import-double-single-quote

[Approach for Intellij 2018.1]

Intellij IDEA -> Preferences-> Editor -> Code Style -> TypeScript -> Punctuation -> Use “double” quotes “always” :  “Single” quotes “always” -> apply -> o.k.

Intellij2018SingleQuote.png

[Reference]

For Webstorm user, please check out the approach from following settings suggested on stackoverflow :
http://stackoverflow.com/questions/35918707/how-to-make-webstorm-reformatting-source-code-to-change-double-quotes-to-singl

Advertisements

About yingding wang
i am looking forward to innovation in IT and Robotics

Comments are closed.

%d bloggers like this: