![Vue.js 2 Design Patterns and Best Practices](https://wfqqreader-1252317822.image.myqcloud.com/cover/122/36700122/b_36700122.jpg)
上QQ阅读APP看书,第一时间看更新
Vue 2 Snippets
Snippets are an important part of application development; in a similar way to Emmet, they allow us to quickly scaffold common patterns within our application. We'll also be installing another Visual Studio Code extension that provides us with a variety of commonly used snippets named Vue 2 Snippets.
This allows us to save a substantial amount of time that we otherwise would have had to spend writing out the same boilerplate code. Take the next example; although it's simplistic in nature, we get a description of the snippet, and with a hit of Tab it expands to our predefined code:
![](https://epubservercos.yuewen.com/92BBF3/19470396301581106/epubprivate/OEBPS/Images/234a2a64-d70c-44f4-902d-6c6c603f10be.jpg?sign=1739313642-nzgkFozO7qypLMVTAP9kICa8pQs9PwH3-0-51a1101c162e4148dc1e355519afcaf4)
Taking advantage of Vue snippets