autocomplete-js-import
Autocompletes commonjs and es6 import statements
Daniel Garcia-Carrillo 77,262 52 1.4.0 MIT GitHub

autocomplete-js-import

Autocomplete+ provider for JS import statements

Autocompletes ES6 or CommonJS (node) style import statements with relative file matching, full project fuzzy file matching or packages found in package.json.

By default, plugin will only allow autocompletion in the form of relative paths:

import local files screenshot

New Fuzzy matching (disabled by default)

Additional features

  • When project dependencies autocompletion is enabled, every root package.json is watched for changes
  • Autocomplete hidden (dot) files (disabled by default)
  • Automatically remove unnecessary extensions (e.g. ./index.js => ./index)

TODO / Known Issues

  • Fuzzy pattern matching doesn't work with files added/removed after project is added
  • Attempting to fuzzy search with slashes or periods inserts suggestion incorrectly
  • If it wasn't compatible with Windows before, it sure isn't now (Unix path specific code)