Ben
Ben

Reputation: 4110

Resolve and organize imports for all files in given folder

I need to resolve all missing imports for a set of typescript files and to organize the imports (remove unused imports and sort them). In visual studio 2017, I use intellisense to add import (manually for every missing references) and I use Ctrl+K,D to organize the imports. I need to do that on 700 files. That's why I'm looking for a way to run those commands on an entire folder (or entire project). My project is an Angular project, so I'm looking for this solution with Visual Studio Code or Visual Studio 2017.

Upvotes: 6

Views: 3540

Answers (1)

Nil Llisterri
Nil Llisterri

Reputation: 867

There isn't a built-in way to do this yet, so best way I've found to do this is to use the Folder source actions VS Code plugin

Upvotes: 1

Related Questions