複製以下內容
{
// Place your snippets for vue here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Print to console": {
"prefix": "sca",
"body": [
"<template>",
"",
"</template>\n",
"<script>",
"export default {",
"",
"}",
"</script>",
"",
"<style>",
"",
"</style>",
],
"description": "vue code autocompletion"
}
}
這裏prefix後面的sca代表你輸入sca就會自動補全代碼,可根據需要更改
description爲描述內容
代碼整行移動 Alt + 方向鍵
代碼整行復制 Shift+ Alt + 方向鍵
當前主題
插件
vetur
- 語法高亮
- Snippet
輸入對應的lang出現相應的syntax
Vue模板就是簡單的html、js、css 如下圖輸入js就會
- 錯誤檢測
eslint
eslint幫助我們檢查JavaScript編寫時的語法格式錯誤,以規範代碼結構、代碼風格,可自定義檢查規則,對於團隊的協作、代碼review有至關重要的作用。