vue-helper 組件 跳轉 | Vue Jump to Tag 好用,需自己設定快捷鍵 | Path Intellisense


vue-helper 組件 跳轉 組件名稱 除首字母大寫,其他不能有大寫字母,否則不能跳轉

比如
mycomponent 這個名字可以
Mycomponent 這個名字可以
myComponent 這個名字不行
MyComponent 這個名字不行

原來是 kebabCase 橫杠模式 下面用的是 myComponent 模板里就用 my-component 就ok了

jsconfig.json

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

jsconfig.json 用的插件是 Path Intellisense

在另一個同事電腦上 不好使,不知道差什么。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM