VSCode 设置vue2模板

点击设置  > 用户代码片段 > 输入Vue (打开vue.json)> 将代码复制内

"Print to console": {
		"prefix": "<",
		"body": [
            "<template>",
            "  <div class='$1'></div>",
            "</template>",
            "",
            "<script>",
            "export default {",
				"",
            "}",
            "</script>",
			"",
            "<style lang='' scoped>",
				"",
            "</style>"
		],
		"description": "A vue2 file template"
	}

相关推荐

  1. VSCode设置

    2024-04-02 10:28:02       22 阅读
  2. VueVue路由-模式设置

    2024-04-02 10:28:02       8 阅读
  3. 2节:Vue3 模板语法

    2024-04-02 10:28:02       34 阅读
  4. 创建项目模板:vite+vue2+eslint

    2024-04-02 10:28:02       8 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-02 10:28:02       19 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-02 10:28:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-02 10:28:02       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-02 10:28:02       20 阅读

热门阅读

  1. 常见故障排查和优化

    2024-04-02 10:28:02       12 阅读
  2. Spark面试整理-Spark如何处理大数据

    2024-04-02 10:28:02       15 阅读
  3. C++4.2

    2024-04-02 10:28:02       14 阅读
  4. 深入理解 C++ Lambda 表达式

    2024-04-02 10:28:02       14 阅读
  5. 【DevOps工具篇】安装 LDAP 管理 GUI PhpLdapAdmin

    2024-04-02 10:28:02       16 阅读
  6. Docker:使用MinIO搭建对象存储平台

    2024-04-02 10:28:02       16 阅读
  7. 在k8s中部署高可用程序实践和资源治理

    2024-04-02 10:28:02       17 阅读
  8. 【数据结构】二叉树

    2024-04-02 10:28:02       14 阅读
  9. Unity 读写Excel打包后无法运行可能的解决方案

    2024-04-02 10:28:02       19 阅读
  10. ubuntu 20.04 SD 卡分区类型 msdos 改为 GPT 的方法

    2024-04-02 10:28:02       16 阅读
  11. LeetCode热题Hot100 - 最长回文子串

    2024-04-02 10:28:02       19 阅读