vscode函数注释
时间: 2023-09-21 10:09:48 浏览: 113
在VSCode中,你可以使用快捷键来生成函数注释。将光标放在函数行或者将光标放在函数上方的空白行,然后按下快捷键:window:ctrl win t, mac:ctrl cmd t, linux: ctrl meta t, Ubuntu: ctrl super t。这样就可以自动解析函数参数,并生成函数参数注释。另外,生成函数注释之后,你可以使用快捷键移动鼠标到下一行,快速为函数参数添加描述。在页面中使用快捷键Mac:ctrl commit i(::window:ctrl alt i )可以生成页面级头部注释。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [VSCode自动添加注释](https://blog.csdn.net/qq_41583040/article/details/130612107)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [vscode注释汇总](https://blog.csdn.net/weixin_38318244/article/details/115631697)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文