Organizing imports from auto-import

Answered

When you auto-import from the same package, the imports are grouped together and written in the same line. We have a policy of importing from the same package on different lines: e.g. instead of import {A,B,C} from 'package';

import {

  A,

  B,

  C

} from 'package';

 

How can I adjust auto-import settings?

5 comments

Would setting Editor | Code Style | PHP | Wrapping and Braces | Group use to Wrap always or Wrap if long help?

0

@Eugene Morozov

That is obviously JavaScript/Typescript code and not PHP ...

0

@Andriy Bazanov: You are right, my question is about Typescript.

0

Wow sorry, didn't pay attention the the actual code sample.
Then it's Editor | Code Style | TypeScript | Wrapping and Braces | ES6 import/export.

1

@Eugene Morozov Wrap Always option works like a charm :) Thank you Eugene!

0

Please sign in to leave a comment.