Skip to content

ChristianKohler/NpmIntellisense

Repository files navigation

Npm Intellisense

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

auto complete

Installation

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

install

Contributing

Something missing? Found a bug? - Create a pull request or an issue. Github

Features

Import command

import command

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

Import command (ES5)

import command

{
	"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.

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

Show build in (local) libs

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

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

Lookup package.json recursive

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

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

Experimental: Package Subfolder Intellisense

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

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

License

This software is released under MIT License

About

Visual Studio Code plugin that autocompletes npm modules in import statements

Resources

License

Stars

Watchers

Forks

Packages

No packages published