How to update auto Import statements template?

When I add something IDE nicely add the import statement automatically like this. 

import {MyService} from "../shared/service/my.service";

But it uses double quote(") and later TSLint shows annoying error saying it should be single quote(').
How can I change the default IDE template to have single quote(') instead of double quote(")?
I tried to find templates which creates this but could not get.

0
3 comments

Hi there,

https://stackoverflow.com/a/39779498/783119

  • Settings/Preferences
  • Editor | Code Style | TypeScript | Punctuation

 

2

Note that you can import code style prerefences from your tslint.json : open it in editor and click 'Yes' when prompted to apply settings. See https://blog.jetbrains.com/webstorm/2017/01/webstorm-2017-1-eap-171-2455/, Import code style from tslint.json

1
Avatar
Permanently deleted user

Many thanks to Elena and Andriy! 

0

Please sign in to leave a comment.