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)的芯片分析师认为,随着芯片行业资本支出的增加,需求度较高的工厂已经开工,预示着短缺情况即将结束。
-
Docker 常用命令
docker目前代替虚拟机使用的一个容器,灵活好用。
-
眼镜试戴的装饰效果
开发眼镜类产品的时候需要使用试戴的功能,这里就有你需要的学习资料哦!
-
娱美德旗下MMORPG手游《传奇4》将推出新PVP玩法"比奇掠夺"&
《传奇4》推出新门派PVP玩法!韩国首尔2022年6月29日 /美通社/ -- 《传奇4》(MIR4)的新PVP玩法比奇掠夺(Bicheon Heist)于2022年6月28日推出。
- 点击排行
- 站长推荐
- 猜你喜欢
- 网站信息
- 站内问答:12篇
- 站内文章:213篇
- 建站时间:已运行1239天
- 备案号: 浙ICP备2022018799号
- 语言:
- English(USA)
- French(FR)
- Chinese(ZH)
无数据