patterntypescriptCritical
WebStorm/PhpStorm double quotes in TypeScript auto import
Viewed 0 times
typescriptdoublequotesautophpstormwebstormimport
Problem
I'm using TypeScript style with single quotes, double quotes are used exclusively in HTML templates.
WebStorm/PhpStorm auto import adds
How can this behaviour be fixed?
WebStorm/PhpStorm auto import adds
import statements with double quotes and ruins the style. I guess this applies to all JetBrains products.How can this behaviour be fixed?
Solution
This behaviour is controlled by the following option:
As of 2017.1 version it's on new
Settings/Preferences
Editor | Code Style | TypeScript
"Punctuation" tab | Generated code -> Quote marks
As of 2017.1 version it's on new
Punctuation tab and options are named a bit differently:Context
Stack Overflow Q#39779272, score: 967
Revisions (0)
No revisions yet.