It is possible to change this behavior, but it took me awhile to figure it out so I wanted to share. What I found though was that Vetur would default to both using double-qoutes. I think these are pretty common preferences. I like to use double-quotes in my HTML templates but wrap strings in single-quotes in my Javascript code. One of the biggest issues I've run into is how the Vetur extension handles auto-formatting of your code. As is pretty common, my editor of choice is Visual Studio Code which when combined with the Vetur VS Code Extension for Vue extension, provides a pretty great single-file component experience. I really enjoy having everything for a single component in one place, keeping my editor tab clutter to a minimum. I've been almost exclusively working with Vue's awesome single-file components. For quite awhile now I've been primarily doing frontend development in Vue.js Javascript framework.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |