vscode enter @ code prompt

When vscode enters the @ code prompt, you can prompt the file under src. You need to create a new .json file (jsconfig.json) in the vue project.

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

that's it! ! !

Guess you like

Origin blog.csdn.net/weixin_45849417/article/details/131800993