不再手写import - VSCode自动引入Vue组件和Js模块

https://www.cnblogs.com/terrysu/p/9329570.html

vsCode配置import@路径提示

 

在根目录添加 jsconfig.json 。

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": [
        "./src/*"
      ]
    },
  },
  "include": [
    "./src/**/*",
  ],
}
 
重启vscode
 
posted @ 2020-02-24 15:19  shanjinghao  阅读(2602)  评论(0编辑  收藏  举报