zl程序教程

您现在的位置是:首页 >  工具

当前栏目

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

2023-09-11 14:19:39 时间

-

根目录创建jsconfig.json

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

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

 

 

 

 

 

 

 

 

 

-