Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Typescript/Javascript DeporterNew to Visual Studio Code? Get it now.
Typescript/Javascript Deporter

Typescript/Javascript Deporter

Acr0most

|
7,790 installs
| (2) | Free
removes all unused imports
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ts-deporter README

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
  • change README file

0.0.1

  • Initial release of ts-deporter

Contact

any questions?

  • mail me do-while-true@gmx.de

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft