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
0

Try setting ES6 import/export to Wrap always in Settings | Editor | Code Style | TypeScript | Wrapping and Braces

0
Avatar
Permanently deleted user

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.

0

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 .editorconfig file in your project? can you repeat the issue in a new project?

0

I think you need to ensure that `ij_typescript_imports_wrap = normal` is set, at least that is what worked in my case

0

请先登录再写评论。