Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soates/Auto-Import

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.
https://github.com/soates/Auto-Import

Last synced: about 1 month ago
JSON representation

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.

Awesome Lists containing this project

README

        

### Auto Import

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

#### Multi-root workspace Ready!

----

----

## 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.3

- Finally merged long awaited pull requsts :)
- Multi-root workspace ready!

### 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](https://github.com/lukeautry "lukeautry")
- Minor bug fixes and improvements.

### 1.0.2/1.0.3

- Merged Pull Request from [lukeautry](https://github.com/lukeautry "lukeautry") and [zhaoshengjun](https://github.com/zhaoshengjun "zhaoshengjun") , Big thanks to both.

### 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).