jsconfig.json 配置vscode只能跳转文件

-

根目录创建jsconfig.json

{
  "compilerOptions": {
      "baseUrl": "./",
      "paths": {
        "@/*": ["src/*"],
      }
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules", "dist"]
}

让项目的这个配置覆盖vscode的配置即可实现,识别@符,按ctrl键智能跳转到指定文件

 

 

 

 

 

 

 

 

 

-

posted @ 2022-12-20 10:31  古墩古墩  Views(371)  Comments(0)    收藏  举报