当前位置: 首页 > news >正文

VScode 配置用户片段

文件->首选项->配置用户片段->新建全局用户片段

后续就可以通过vv3来直接生成下面的代码

{// Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope // is left empty or omitted, the snippet gets applied to all languages. 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": {// 	"scope": "javascript,typescript",// 	"prefix": "log",// 	"body": [// 		"console.log('$1');",// 		"$2"// 	],// 	"description": "Log output to console"// }"Print to console": {"prefix": "vv3","body": ["<template>","\t<div>","\t</div>","</template>","<script lang=\"ts\">","import { defineComponent } from 'vue'","export default defineComponent({","\tname:'App'","})","</script>",],"description": "Log output to console"}
}
http://www.lryc.cn/news/234498.html

相关文章:

  • Fedora 项目近日发布了 Fedora Linux 39
  • Uniapp连接iBeacon设备——实现无线定位与互动体验(理论篇)
  • GCD:异步同步?串行并发?一文轻松拿捏!
  • 学习c#的第十七天
  • 龙芯 操作系统选择和安装
  • 【开源】基于JAVA的智能停车场管理系统
  • 使用IDEA 将Eclipse java工程转为maven格式
  • CCF CSP认证 历年题目自练Day47
  • LeetCode Hot100之十:239.滑动窗口最大值
  • x264、x265、OpenH264 简要对比
  • 二维码智慧门牌管理系统升级解决方案:门牌聚合,让管理更便捷!
  • 物联网AI MicroPython学习之语法UART通用异步通信
  • Git企业开发级讲解(四)
  • pytorch 安装 2023年
  • 人工智能基础_机器学习040_Sigmoid函数详解_单位阶跃函数与对数几率函数_伯努利分布---人工智能工作笔记0080
  • Scala---迭代器模式+Trait特质特性
  • labview运行速度太慢
  • QT基础入门【QSS】继承、命名空间中的小部件、QObject 属性介绍
  • Ubuntu18.04安装IgH主站
  • HTML5-原生History
  • 无需公网IP,使用MCSM面板一键搭建我的世界Minecraft服务器联机游戏
  • 高斯积分-Gaussian Quadrature
  • Linux下非root用户安装CUDA
  • 【bugfix】安装 flash-attn 报错
  • 技术实践|高斯集群服务器双缺省网关故障分析
  • 手把手教你搭建Maven私服
  • LeetCode 面试题 16.25. LRU 缓存
  • LaTeX 数学公式常见问题及解决方案
  • 2023最新软件测试20个基础面试题及答案
  • JMeter-BeanShell预处理程序和BeanShell后置处理程序的应用