This extension provides deleting unnecessary and unused imports from your typescript/javascript files.
Extension Settings
Activate the deporter via context-menu in any .ts file or use default shortcut: ctrl+alt+d.
Since version 1.0.0 you can start the deporter also in context-menu for directories to check all typescript files within a folder and deport if necessary.
Provided Features
remove in active file via context menu or in selected folder
highlighting unused imports
support .js and .ts files
Known Issues
Planned Features
remove imports before save the opened file
maybe set colors and file types via configuration
Release Notes
Release Notes for ts-deporter
1.0.2
bugfix in syntax highlighting
1.0.1
add editor Highlighting for unused imports
enable removing unused imports for javascript files (also in folder)
fix bug with multiple spaces after deport
1.0.0
remove debug lines from 0.0.2
add context-menu entry for deporting within a folder
fix bug with replacing doublespaces
abort removing sth. like import 'mynicelib;'
0.0.2
add support import from imports with 'as': import * as x from 'y';
fix bug in removing multiple imports -> missing remove comma