vscode配置注释片段
分类专栏: Tool&
简介 开发需要注释,这里查看很方便。
<p><span style="color:rgb(77, 77, 77);" class="ql-size-large">第一步,文件-首选项-用户代码片段</span></p><p><br></p><p><span style="color:rgb(77, 77, 77);" class="ql-size-large">第二步,配置用户代码片段 选择json文件,示例: javascript语言就选择javascript.json</span></p><p><br></p><p><span style="color:rgb(77, 77, 77);" class="ql-size-large">第三步,建立新的全局代码片段</span></p><p><br></p><pre class="ql-syntax" spellcheck="false">{
// 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"
},
"Print to jsNoteTitle": {
"prefix": "jsf",
"body": [
"/*",
" *@description:",
" *@author: Mister Wang",
" *@date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}",
" *@param:",
"*/"
],
"description": ""
},
}
</pre><p><br></p><p><br></p><p>这样就完成了注释模版的建立。</p>
分享到:
转载:
https://blog.csdn.net/weixin_37221852/article/details/100640821
喜欢 0
收藏
暂无评论信息
- 相关文章
- 文章推荐
-
半导体短缺即将结束?分析师:如果没有 1 美元芯片会影响更多
德勤咨询(Deloitte Consulting)的芯片分析师认为,随着芯片行业资本支出的增加,需求度较高的工厂已经开工,预示着短缺情况即将结束。
-
群辉nas docker容器 配置svn仓库,并实现外网访问
2022-08-11的这一天, 群辉nas到手了, 实现svn仓库外网的访问,折腾了好久。记录一下。
-
淘宝 NPM 镜像站喊你切换新域名啦
淘宝 NPM 镜像站(npm.taobao.org)自 2014 年 正式对外服务,一开始只是想简单地做 NPM 的中国镜像站点,回馈国内前端社区,不知不觉竟然一直运行到现在。当年参考 Ruby Gems 淘宝镜像 的方式,跟阿里开源组织申请了 taobao.org 的二级域名,镜像站点名称也自然而然地取名为 淘宝 NPM 镜像站 (下称 CNPM)。
-
Node 配置sequelize + mysql,根据模型自动创建数据库表
研究了一下午的node + sequelize + mysql。
- 点击排行
- 站长推荐
- 猜你喜欢
- 网站信息
- 站内问答:12篇
- 站内文章:213篇
- 建站时间:已运行1268天
- 备案号: 浙ICP备2022018799号
- 语言:
- English(USA)
- French(FR)
- Chinese(ZH)
无数据