Document This
TypeScript, visual studio code里面安装一个 Document This插件
将光标放置于function上面,快捷键是 Ctrl+Alt+D 加 Ctrl+Alt+D
。
/**
*
*
* @export
* @param {String} str
*/
export function Person(str:String){
}
vscode-fileheader
ctrl+alt+i
//快捷键Ctrl+Shift+i
/*
* @Author: Jenny
* @Date: 2019-06-06 16:07:48
* @Last Modified by: Jenny
* @Last Modified time: 2019-06-06 16:07:48
*/
修改author
Configuration
In the User Settings inside, set and modify the creator's name.
"fileheader.Author": "tom",
"fileheader.LastModifiedBy": "jerry"
参考链接 vscode 这样的注释怎么生成?
网友评论