Npm Intellisense
自动引入node_modules中的JS安装VSCode拓展: Npm Intellisense
配置 Npm Intellisense
{ "npm-intellisense.scanDevDependencies": true, "npm-intellisense.importES6": true, "npm-intellisense.importQuotes": "'", "npm-intellisense.importLinebreak": ";\r\n", "npm-intellisense.importDeclarationType": "const", }
VSCode输入命令(Ctrl/Command + Shift + P
): Npm Intellisense: Import module
后, 选择引入包
自动引入Vue组件和JS模块后,按住Ctrl/Command
点击路径可直接跳到该文件