yaogengzhu / daily-share

个人博客记录、内容在issues
30 stars 4 forks source link

如何配置 vscode 识别@文件路径(2022-06-13) #163

Open yaogengzhu opened 2 years ago

yaogengzhu commented 2 years ago
  1. 在项目根目录创建 jsconfig.json

  2. 添加如下配置

    {
    "compilerOptions": {
    "baseUrl": "./",
    "paths": {
      "@/*": ["src/*"],
    }
    },
    "exclude": ["node_modules", "dist"],
    "include": ["src/**/*"]
    }
  3. 重启生效