Wrapping imports in Typescript
Hi,
i want to warap my imports but i dont find any options.
This is what i want:
import {
xxxxxxxxxxxxOverviewComponent
} from './module/vpm/module/xxxxxxxxxxxx/component/xxxxxxxxxxxx-overview/xxxxxxxxxxxx-overview.component';
// What i dont want.
import { xxxxxxxxxxxxOverviewComponent } from './module/vpm/module/xxxxxxxxxxxx/component/xxxxxxxxxxxx-overview/xxxxxxxxxxxx-overview.component';
kind regards
Please sign in to leave a comment.
Try setting ES6 import/export to Wrap always in Settings | Editor | Code Style | TypeScript | Wrapping and Braces
Hi,
I have the same problem. I have tried to set the ES6 import/export option to Wrap always, but it still reformat the imports to a single line.
In my case I would prefer to use Wrap if long with a General Hard wrap of 140 (used in all code styles as Default).
Neither option works.
If you need more information about my problem, let me know.
Thanks in advance.
works fine for me
Please share screenshots of Settings | Languages & Frameworks | JavaScript | Prettier and Settings | Editor | Code Style | JavaScript | Wrapping and Braces pages. Also, do you have
.editorconfigfile in your project? can you repeat the issue in a new project?I think you need to ensure that `ij_typescript_imports_wrap = normal` is set, at least that is what worked in my case