(1) may be the best vue code snippets plug-ins in Vscode, not only includes the vue2 all api, also contains vue-router 2 and vuex 2 code
(2) Each snippet has a detailed description, mainly to facilitate learning, because when learning to forget the use of an api, often to consult the document will be a waste of time, so I will increase the description of each code snippet, description of the basis are derived from official documents
In vue and vue-router, vuex general $ are the beginning of the vm api,In the vscode code snippet prepared by the $ is a variable, when you enter $ is no role。So for all "$" please enter vm
Tips for the way Many plug-ins is to use shorthand,for example, the router object method, enter rtb-> will prompt router.beforeEach(),This is convenient, but need to force you to remember, not friendly.So what I've taken is that when you type router, it lists all the properties and methods of the router object