一款 Visual Studio Code 下的 Node.js / TypeScript / Vue 模块路径智能提示插件

来源:转载

Node.js Modules Intellisense

Visual Studio Code plugin that autocompletes JavaScript / TypeScript modules in import statements.

This plugin was inspired byNpm Intellisense andAutoFileName.

Installation

Launch VS Code Quick Open (⌘+P), paste the following command, and press enter.

ext install node-module-intellisense

View detail on Visual Studio Code Marketplace

Issues & Contribution

If there is any bug, create a pull request or an issue please.Github

Configuration

Node.js Module Intellisense scans builtin modules, dependencies, devDependencies and file modules by default. Set scanBuiltinModules, scanDevDependencies and scanFileModules to false to disable it.

{ // Scans builtin modules as well "node-module-intellisense.scanBuiltinModules": true, // Scans devDependencies as well "node-module-intellisense.scanDevDependencies": true, // Scans file modules as well "node-module-intellisense.scanFileModules": true, // File module extensions "node-module-intellisense.fileModuleExtensions": [ ".js", ".jsx", ".ts", ".d.ts", ".tsx", ".vue", ".json" ],} Changelog v1.2.0 - Add support for package sub path such as ts-node/register (issue #4) v1.1.0 - Fix some problem: Support export ... from ... statement (issue #1) Add support for TypeScript /// <reference... comment (issue #2) Fix TypeScript .d.ts file problem (issue #3) v1.0.4 - Support language HTML v1.0.2 - Support custom file module extension name, add .vue and .json to default v1.0.1 - Fix .vscodeignore v1.0.0 - Initial release License MIT LicenseCopyright (c) 2016 Zongmin Lei <[email protected]>Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.

分享给朋友:
您可能感兴趣的文章:
随机阅读: