VS Code tips — Automatically update import paths when moving files in JavaScript and TypeScript

preview_player
Показать описание
Today's VS Code tip: update imports for JavaScript and TypeScript

When you rename or move a JavaScript or TypeScript file, VS Code will prompt to update update all imports of that file.

Рекомендации по теме
Комментарии
Автор

Exactly what I was looking for, thank you

DanielDousek
Автор

What about an import fix after moving a type/class from one file to another? I can only find for moving files.

heliogomesmagalhaes
Автор

When I type "update imports" in Settings search, I get No Settings Found. Is something wrong with my install?

KirkRoss
Автор

It does not work when I try to move a .vue file .

huihui
Автор

It works only in about 50% cases. Horribly unreliable

ubobcat