organize imports on save vscode code example
Example 1: organize imports on save vscode
//Organize imports on save & delete unused imports (vscode)
//Add in settings.json:
"editor.codeActionsOnSave": [
"source.organizeImports",
],
Example 2: import on save typescript
//Add missing imports on save TypeScript (vscode)
//Add in settings.json:
"editor.codeActionsOnSave": [
"source.addMissingImports",
],