Vscode @ symbol has no tips

Using webpack aliases has no tips.

Create a jsconfig.json file in the root of your project.

The content like this ↓↓↓↓

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

Reference

https://code.visualstudio.com/docs/languages/jsconfig

Leave a Reply

Your email address will not be published. Required fields are marked *