前提步骤如以下博客
VSCode 设置vue初始页面用户自定义代码片段_舞空~的博客-CSDN博客
针对硅谷外卖项目,需要清空export default内的代码,并更改第33行代码配置,将lang改为stylus
以下代码供复制粘贴
{
// 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": "vue",
"body": [
"<template>",
" <div>",
" 初始页面",
" </div>",
"</template>\n",
"<script>",
" export default {",
" }",
"</script>\n",
"<style lang=\"stylus\" rel=\"stylesheet/stylus\">\n",
" ",
"</style>",
"$2"
],
"description": "vue初始页面"
}
}
|