在vscode 中有Git Blame 和 GitLens 插件显示 git 提交历史记录,在代码中显示的额插件。
推荐使用git blanme 更加简洁。
按照插件后,在setting.json 中配置如下:
   "gitblame.inlineMessageEnabled": true,
"gitblame.inlineMessageFormat": "${author.name}, (${time.ago}) · ${commit.summary}"
   
 
然后打开一个git 的项目文件,然后点击任意一行,即可看到对应的git 历史提交提示。
 

转www.载for网站制作学习asp必.cn究