I'm using Typescript with SvelteKit
When I type something that can be auto imported, as seen in the above GIF, the auto import doesn't keep things at the same indent level. I also need absolute paths:
/src/...
not
src/...
The VS code setting for this is called TypeScript > Suggest: Auto Imports
It's a minor inconvenience but I am a programmer and this is making me work harder than I ought to. /s
While I can't help with the exact solution,
I can propose a workaround that will save you some work.
Import Path:
CTRL+,
)typescript import module specifier
shortest
torelative
Now when you auto-import, a relative path will be used which compiles correctly.
Indentation:
You can use
ALT+SHIFT+F
to format the entire file which will fix that as well.