xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

VSCode 在 Vue 导入路径中使用 @ 符号后无法正确跳转 bug

VSCode 在 Vue 导入路径中使用 @ 符号后无法正确跳转 bug

❌ bug

jsconfig.json

{
  // This file is required for VSCode to understand webpack aliases
  "compilerOptions": {
    // This must be specified if "paths" is set
    "baseUrl": ".",
    // Relative to "baseUrl"
    "paths": {
      "@/*": ["./src/*"],
    }
  }
}

{
  "compilerOptions": {
    // This must be specified if "paths" is set
    "baseUrl": ".",
    // Relative to "baseUrl"
    "paths": {
      "*": [
        "*",
        "mypath/*"
      ]
    }
  }
}

https://code.visualstudio.com/Docs/languages/javascript#_javascript-project-jsconfigjson

refs

https://twitter.com/code

https://stackoverflow.com/questions/tagged/visual-studio-code?tab=Frequent



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2021-01-25 10:35  xgqfrms  阅读(1256)  评论(6编辑  收藏  举报