Skip to content

vscode extension that will automatically finds, parses and provides code actions for all available imports. Only currently works with files in your folder and TypeScript.

License

Notifications You must be signed in to change notification settings

RodolfoSilva/Auto-Import

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Import

Automatically finds, parses and provides code actions and code completion for all available imports. Works with Typescript and TSX.



Configuration

filesToScan - Glob for which files in your workspace to scan, defaults to '**/*.{ts, tsx}'

showNotifications - Controls if the annoying notifications should be shown, defaults to false

doubleQuotes - Use double quotes rather than single

spaceBetweenBraces - Difference between import {test} and import { test }

autoComplete - Adds found items to intellisense and automatically imports then

useSemiColon - Use ; at the end of a line e.g Import * from ./app or Import * from ./app; - Default True


Changelog

1.5.2

  • Added support for Enum & Type imports.
  • Added ability to toggle semi colons - see setting useSemiColon.
  • Added [AI] before import statements - so you know if its come from Auto Import or Typescript.

1.2.2

  • Fix for imports not being merged.

1.2.1

  • Added optional auto completion for all known imports ( enabled by default ).
  • Improved scanning and seeking speed for large projects.
  • TSX Supported added, Thanks to lukeautry
  • Minor bug fixes and improvements.

1.0.2/1.0.3

1.0.1

32swinnqchdncsrvqcnb4wzr2t3e5nopblvhsbhkky4sj2dhyp7a

  • Fixed breaking bug with vs 1.5.* and < TypeScript 2.0.0.

1.0

  • Few small tweaks and fixed error with vscode 1.5.*.

0.9

  • Added Import status bar, currently show you how many importable objects you have.
  • Correctly uses configured file paths for fileWatcher.
  • Fixed new exports not being immediately discovered.
  • CodeAction import paths are relative to the current file.
  • Typings are now excluded by default (along with node_modules and jspm_packages)

0.8.1

  • Fixed Windows paths issue

0.8

  • Nicer import paths.
  • Imports are now merged if they are from the same location.
  • Configuration for ' or ".
  • Works on Windows.
  • Now on Github.

0.7 / 0.7 / 0.7.2

  • Add configuration to control notifications and files to scan
  • Fixed a few bugs
  • Refactored code

0.6.0

  • Partial support for node_modules imports. AutoImport will scan your already used imports and provide them as suggestions when appropriate, so you will only need to type out your import once in one file and all other times will be handled by AutoImport. Version 0.7 will have full support for this.

0.5.1

  • General improvements, icon added and extension will now also watch for local file changes.

Todo

  • Work with node_modules (@angular / underscore for example).

About

vscode extension that will automatically finds, parses and provides code actions for all available imports. Only currently works with files in your folder and TypeScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%