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?
Please sign in to leave a comment.
Would setting Editor | Code Style | PHP | Wrapping and Braces | Group use to Wrap always or Wrap if long help?
@Eugene Morozov
That is obviously JavaScript/Typescript code and not PHP ...
@Andriy Bazanov: You are right, my question is about Typescript.
Wow sorry, didn't pay attention the the actual code sample.
Then it's Editor | Code Style | TypeScript | Wrapping and Braces | ES6 import/export.
@Eugene Morozov Wrap Always option works like a charm :) Thank you Eugene!