vscode Vue reference click to jump

Window click ctrl (MAC click command) + files, methods, etc. imported through import, jump to the file where it is located

Create a new file jsconfig.json in the project root directory and add the following code

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

After adding, restart VsCode to take effect

Guess you like

Origin blog.csdn.net/qq_36538368/article/details/125300419