Toggling suggestion between PascalCase and kebab-case for Vue components in template tags
See original GitHub issueInfo
- Platform: Linux
- Vetur version: 0.11.7
- VS Code version: 1.20
Request
Right now Vetur suggests components only in kebab-case format. An option to toggle suggestions from command palette between kebab-case and PascalCase for Vue components inside template
tags would be great!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:23
- Comments:7 (2 by maintainers)
Top Results From Across the Web
vue/component-name-in-template-casing
enforce tag names to pascal case. E.g. <CoolComponent> . This is consistent with the JSX practice. "kebab-case" ... enforce tag names to ...
Read more >PascalCase or kebab-case usage in Vue's DOM content?
In my template, I can do <MyComponent/> and I can also do <my-component></mycomponent> so can someone explain when and why I would ever...
Read more >Vue-Multiselect | Vue Select Library
toggle : Function – toggles the dropdown. singleLabel, Slot for custom label template for single select. placeholder, Slot for the placeholder (is not...
Read more >Best Practice for writing Vue Js 2 - Medium
Using PascalCase within JSX (and templates) makes it easier for code readers to differentiate between components and HTML elements. In addition, PascalCase ......
Read more >Vue.js style guide - GitLab Docs
Reference Naming: Use PascalCase for their default imports: // bad import ; Props Naming: Use kebab-case instead of camelCase to provide props in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Even more so when the Vue team recommends using pascal case format for naming components: https://vuejs.org/v2/style-guide/#Multi-word-component-names-essential
With some guidance I would like to tackle this issue 😃
Closed there: https://github.com/vuejs/vetur/commit/cff817223cd0532dcab0b67da9627b7abf551fd1 named initial instead of PascalCase though, like in guide Component name casing in templates strongly recommended