본문 바로가기
ETC

VSCode Vue snippets설정

by Wilkyway 2022. 5. 22.

아래와 같이 자동 완성되도록 스니펫 설정하기

vue.json

{	
  "Generate Basic Vue Code": {
  "prefix": "vue-start",
  "body": [
    "<template>\n\t<div></div>\n</template>\n<script>\nexport default {\n\tname:'',\n\tcomponents:{},\n\tdata() {\n\t\treturn {\n\t\t\tsampleData:''\n\t\t};\n\t},\n\tsetup() {},\n\tcreated() {},\n\tmounted() {},\n\tunmounted() {},\n\tmethods:{}\n}\n</script>\n\n<style>\n\n</style>"
    ],
  "description": "Generate Basic Vue Code"
  }
}
 
 

댓글0