Angular and Tslint for code reformat

Is there a way to tell webstorm to reformat my code based on what tslint says, not get the balloon but from the shortcut ctrl + L + shift

0
6 comments

Yes - WebStorm supports importing code style preferences from tslint.json. See https://blog.jetbrains.com/webstorm/2017/01/webstorm-2017-1-eap-171-2455/, Import code style from tslint.json

0
Avatar
Permanently deleted user

If I didn't get the balloon to say "yes" what do I do?

0

may be, the style is already applied? WebStorm 2017.3 auto-imports code style preferences from tslint config.

Try the following:

- in Settings | Editor | Code Style, Scheme:, choose `Default` scheme, press OK to close preferences

- open your tslint.json in the editor - do you see a prompt to import code style?

0
Avatar
Permanently deleted user

yes now I do thanks Elena!

1
Avatar
Permanently deleted user

Is the import available in IntelliJ Idea?

0

Please sign in to leave a comment.