TypeScript auto optimize import path tsconfig.app.json with "@"

Hello,

how to auto optimize imports with Ctrl + Alt + O in typescript angular project, in the purpose to pass from:

to

The shortcut Alt + Enter does the trick

but I have to do it manually for every line, how to do it for the whole project when I commit and check the option "Optimize imports" ?

Thank you

0
2 comments

Imports aren't currently shortened on optimizing - please vote for https://youtrack.jetbrains.com/issue/WEB-25503 to be notified on any progress with this feature.

Alt+Enter > Fix All doesn't work either - https://youtrack.jetbrains.com/issue/WEB-35903.

So shortening imports one-by-one is the only option for now:(

0
Avatar
Permanently deleted user

Okay I voted, thank you. I am surprised there is no more poeple interested in it

0

Please sign in to leave a comment.