VsCode自动生成头部注释和函数注释(无插件,python为例)
进入用户代码代码片段
进入File > Preferences > User Snippets
选择语言,这里以python为例
进入python.json文件添加头注释和函数注释
{
// Place your snippets for python 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