首页 > 其他分享 >Z_vscode的代码片_NOTE

Z_vscode的代码片_NOTE

时间:2023-06-26 21:57:29浏览次数:53  
标签:body snippet console description vscode 代码 NOTE prefix highlight

snippets/markdown.json

{
  // Place your snippets for markdown 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"
  // },

  "highlight red": {
    "prefix": "hr",
    "body": ["<font color='red' size='4'>\n$1\n</font>"],
    "description": "highlight red"
  },

  "highlight orange": {
    "prefix": "ho",
    "body": ["<font color='orange' size='4'>\n$1\n</font>"],
    "description": "highlight orange"
  },

  "highlight yellow": {
    "prefix": "hy",
    "body": ["<font color='yellow' size='4'>\n$1\n</font>"],
    "description": "highlight yellow"
  },

  "highlight green": {
    "prefix": "hg",
    "body": ["<font color='green' size='4'>\n$1\n</font>"],
    "description": "highlight green"
  },

  "highlight blue": {
    "prefix": "hb",
    "body": ["<font color='skyblue' size='4'>\n$1\n</font>"],
    "description": "highlight skyblue"
  },

  "highlight violet": {
    "prefix": "hv",
    "body": ["<font color='violet' size='4'>\n$1\n</font>"],
    "description": "highlight violet"
  },

  "anki question": {
    "prefix": "qq",
    "body": ["<font style='display:none;'>\n$1\n</font>"],
    "description": "make anki question"
  }
}

snippets/javascript.json

{
  // Place your snippets for javascript 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"
  }
}

snippets/html.json

{
	"create vue app": {
		"prefix": "vueapp",
		"body": [
		  "<!DOCTYPE html>",
		  "<html lang=\"zh\">",
		  "<head>",
		  "    <meta charset=\"UTF-8\">",
		  "    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
		  "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
		  "    <title>Document</title>",
		  "</head>",
		  "<body>",
		  "    <div id=\"app\">",
		  "        {{msg}}",
		  "    </div>",
		  "    <script src=\"vue/vue.js\"></script>",
		  "    <script>",
		  "        Vue.createApp({",
		  "            data:function(){",
		  "                return{",
		  "                    msg: 'hello vue'",
		  "                }",
		  "            }",
		  "        }).mount('#app')",
		  "    </script>",
		  "</body>",
		  "</html>"
		],
		"description": "create vue app"
	  }
}

标签:body,snippet,console,description,vscode,代码,NOTE,prefix,highlight
From: https://www.cnblogs.com/zhuoss/p/17506785.html

相关文章

  • MATLAB代码:基于模型预测算法的含储能微网双层能量管理模型
    MATLAB代码:基于模型预测算法的含储能微网双层能量管理模型关键词:储能优化模型预测控制MPC微网优化调度能量管理 参考文档:《ATwo-layerEnergyManagementSystemforMicrogridswithHybridEnergyStorageconsideringDegradationCosts》完全复现仿真平台:MATLAB平台......
  • 学习爬虫入门3,正则表达式,代码复现
    正则表达式写回调函数def (self,response) ......
  • PHP 检测网址是否能正常打开代码
    这是一个检测网址是否能正常打开的PHP代码,通过下面的代码检测一个网址是否能正常访问,如果正常则会返回http状态码200的值,如果为其它则不正常;这个代码我们可以用到很多地方,例如缓存友情链接的ICO图标时就可以用到,缓存时先检测网站是否正常,如果正常就缓存ICO图标,否则调用一个默认的图......
  • python代码-基于深度强化学习的微能源网能量管理与优化策略研究
    python代码-基于深度强化学习的微能源网能量管理与优化策略研究关键词:微能源网;能量管理;深度强化学习;Q-learning;DQN内容::面向多种可再生能源接入的微能源网,提出一种基于深度强化学习的微能源网能量管理与优化方法。该方法使用深度Q网络(deepQnetwork,DQN)对预测负荷、风光等可......
  • 在VScode中,文件自动添加头部注释-插件koroFileHeader配置
    1、扩展商店,搜索koroFileHeader进行安装2、打开设置-搜索Fileheader-点击头部注释的setting.json文件3、可以在其中配置头部注释"fileheader.customMade":{"Author":"gitconfiguser.name",//作者//"Author":"gitconfiguser.name",//可以获......
  • notepad++删除包含指定字符串的行(正则)
    比如要去掉所有含有test的行的操作Ctrl+H打开替换窗口。(方式一)正则删除字符后,notepad++批量删除空行查找目标:^.test.$替换为:(空)查找模式,选择“正则表达式”删除空行,可通过notepad++的编辑->行操作->移除空行,来操作。(方式二)正则匹配,删除对应的行查找目标:^.test.\r?\n替......
  • 【HarmonyOS】低代码项目中设置拖拽组件背景色透明度问题
    【关键字】HarmonyOS、低代码开发、拖拽组件、背景色透明度【问题描述】使用拖拽式组件开发HarmonyOS项目时,想给组件设置背景色透明度,有如下几个问题:1)使用DevEcoStudio自带的颜色选择器,无法设置透明度,只能手动输入2)在子模块library中给组件手动输入#ff000000格式背景色,在主模块ent......
  • 低代码平台的核心能力有哪些?
    数字化时代的到来,迫使企业跳出舒适圈,坚定地踏上数字化转型的征程。不断飙升的用户需求,加上专业开发人员的显著缺口,让我们不得不承认,过去几十年的应用开发方式已经无法满足需求。低代码革命已经悄然开始,并不断渗透到各行各业。数字化转型涉及企业的方方面面,其中寻求技术及实现手段......
  • ffmpeg开发程序的实例代码
    以下是一个使用ffmpeg库解码视频文件并输出每个帧的示例代码:```c++includeincludeincludeifdef__cplusplusextern"C"{endifinclude<libavcodec/avcodec.h>include<libavformat/avformat.h>include<libswscale/swscale.h>ifdef__cplusplus}endifusingn......
  • VSCode-代码运行相关
    快捷键Ctrl+Shift+P搜索Ctrl+F5运行代码Ctrl+,打开设置Ctrl+Shift+E打开文件Ctrl+Alt+C打开博客园功能设置文件:settings.json隐藏以及排除git相关文件设置界面字体Go语言Go运行->教程->测试安装Go语言https://www.cnblogs.com/nrocky/p/14449987.html......