美文网首页
vscode添加注释

vscode添加注释

作者: JennyGao66 | 来源:发表于2019-06-06 16:56 被阅读0次

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 这样的注释怎么生成?

相关文章

网友评论

      本文标题:vscode添加注释

      本文链接:https://www.haomeiwen.com/subject/nhhptctx.html