Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode [ctrl+click] 'vue single-file components', 'go to definition' not working

// src/ui/tabbar/Index.vue
<template>
  <div>
    my-tabbar
  </div>
</template>

// src/ui/index.js
import MyTabbar from './tabbar/Index.vue'

export default {
  install(Vue) {
    Vue.component(MyTabbar.name, MyTabbar)
  }
}

// src/main.js
import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
Vue.use(ui)

new Vue({
  render: (h) => h(App)
}).$mount('#app')

// src/App.vue
<template>
  // [ctrl + click] my-tabbar tips no definition found for 'my-tabbar'
  <my-tabbar>/<my-tabbar>
</template>

vscode [ctrl+click] 'vue single-file components', 'go to definition' not working

How can I [ctrl + click] to jump to 'src/ui/tabbar/Index.vue'

Can you tell me anything you know? thank you!!!

like image 378
tjp Avatar asked Jan 17 '26 16:01

tjp


1 Answers

I used vue-helper extension, together with volar.

like image 88
Goper Leo Zosa Avatar answered Jan 20 '26 06:01

Goper Leo Zosa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!