I'm using TypeScript style with single quotes, double quotes are used exclusively in HTML templates.
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?
Also if you would like to add automatic space between curly braces when adding imports like so
import { MyComponent } from './my.component';
you may check in tab Spaces | Whithin | ES6 import/export braces
Spaces | Whithin | ES6 import/export braces
Punctuation Tab did it. I also removed the semicolon at the end but now TSLint is missing it
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.