解决vscode 里面使用@时候路径没有提示的方法

    技术2023-09-10  89

    在项目文件里面最外面 即项目文件根目录下创建一个这样的json 然后重启vscode 就成功了

    效果

    代码

    { "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["src/*"] }, "target": "ES6", "module": "commonjs", "allowSyntheticDefaultImports": true }, "include": ["src/**/*"], "exclude": ["node_modules"] }
    Processed: 0.009, SQL: 10