You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Organize Imports: Add option to change between relative and absolute paths #22908
Feature Request
Add a configuration option that can force auto imports to be converted to relative or absolute paths. This option should be off by default (we leave the paths untouched)
Activity
nukkamoto commentedon Mar 23, 2021
I would prefer this under the refactor context menu, it would be better suited.
twopelu commentedon Nov 19, 2021
+1 (currently trying to manually refactor >1000 absolute paths causing my lib to crash when imported outside)
Chris-McQuiggan commentedon Jun 19, 2023
I don't suppose this is still being worked on?
dan-b-hu commentedon Sep 8, 2023
I found an extension which seems to work well to convert all imports from relative to absolute based on the
baseUrlinjsconfig.json/tsconfig.jsonhttps://marketplace.visualstudio.com/items?itemName=iulian-radu-at.fix-relative-imports-to-baseurl