Effect:

1. Install the plug-in: Path Intellisense

2. Configuration:

"path-intellisense.mappings": {
        "@": "${workspaceRoot}/src"
    }
Copy the code

3, create jsconfig.json file in package.json directory:

{
    "compilerOptions": {
        "target": "ES6",
        "module": "commonjs",
        "allowSyntheticDefaultImports": true,
        "baseUrl": "./",
        "paths": {
          "@/*": ["src/*"]
        }
    },
    "exclude": [
        "node_modules"
    ]
}
Copy the code