您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

vscode怎样注释方法代码块

2024/3/27 10:13:44发布22次查看
alt 在mac 是option键。
方法块的注释:
1、vscode 里安装插件 document this
2、将光标放置于function上面,快捷键是 ctrl+alt+d 加 ctrl+alt+d 
/** *网络请求 * * @export * @class httputil */export default class httputil { static get(url) { return new promise((resolve,reject)=>{ fetch(url) .then(response=>response.json()) .then(result=>resolve(result)) .catch(erro=>reject(error)) }) }}
多行注释:[alt+shift+a]
/* export default class httputil { static get(url) { return new promise((resolve,reject)=>{ fetch(url) .then(response=>response.json()) .then(result=>resolve(result)) .catch(erro=>reject(error)) }) }} */
相关文章教程推荐:vscode教程
以上就是vscode怎样注释方法代码块的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product