Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ChristianKohler/NpmIntellisense

Visual Studio Code plugin that autocompletes npm modules in import statements
https://github.com/ChristianKohler/NpmIntellisense

Last synced: about 2 months ago
JSON representation

Visual Studio Code plugin that autocompletes npm modules in import statements

Awesome Lists containing this project

README

        

# Npm Intellisense

Visual Studio Code plugin that autocompletes npm modules in import statements.

![auto complete](/images/auto_complete.gif)

## Installation

In the command palette (cmd-shift-p) select Install Extension and choose npm Intellisense.

![install](/images/npm_install.gif)

## Contributing

Something missing? Found a bug? - Create a pull request or an issue.
[Github](https://github.com/ChristianKohler/NpmIntellisense)

## Features

### Import command

![import command](/images/importcommand.gif)

```javascript
{
"npm-intellisense.importES6": true,
"npm-intellisense.importQuotes": "'",
"npm-intellisense.importLinebreak": ";\r\n",
"npm-intellisense.importDeclarationType": "const",
}
```

### Import command (ES5)

![import command](/images/require_withname.gif)

```javascript
{
"npm-intellisense.importES6": false,
"npm-intellisense.importQuotes": "'",
"npm-intellisense.importLinebreak": ";\r\n",
"npm-intellisense.importDeclarationType": "const",
}
```

### Scan devDependencies

Npm intellisense scans only dependencies by default. Set scanDevDependencies to true to enable it for devDependencies too.

```javascript
{
"npm-intellisense.scanDevDependencies": true,
}
```

### Show build in (local) libs

Shows build in node modules like 'path' of 'fs'

```javascript
{
"npm-intellisense.showBuildInLibs": true,
}
```

### Lookup package.json recursive

Look for package.json inside nearest directory instead of workspace root. It's enabled by default.

```javascript
{
"npm-intellisense.recursivePackageJsonLookup": true,
}
```

### Experimental: Package Subfolder Intellisense

Open subfolders of a module.
This feature is work in progress and experimental.

```javascript
{
"npm-intellisense.packageSubfoldersIntellisense": false,
}
```

## License

This software is released under [MIT License](http://www.opensource.org/licenses/mit-license.php)