该插件为 VS Code 提供了类似 WebStorm 的 "Annotate with Git Blame" 功能。右键点击 "Annotate with Git Blame" 即可在代码每一行旁边显示该行的 Git 提交记录(包括提交哈希、作者和日期)。
如果安装了 GitLens 插件,还可以点击提交记录直接跳转到 GitLens 提供的提交图(Commit Graph)。
- 显示 Git 提交记录:展示每行代码的提交信息。
- 与 GitLens 集成:点击提交记录可以跳转到 GitLens 的提交图。
- 快速清理:右键清除所有注解。
在 VS Code 扩展市场搜索并安装 "Mini Git Blame"。
This extension brings WebStorm's "Annotate with Git Blame" feature to VS Code. Right-click and select "Annotate with Git Blame" to display Git commit information (commit hash, author, and date) next to each line of code.
If GitLens is installed, you can also click on the commit info to navigate to the GitLens Commit Graph.
- Display Git Commit Info: Shows commit details for each line.
- GitLens Integration: Click to jump to GitLens Commit Graph.
- Quick Clear: Right-click to clear annotations.
- Right-click in a code file and select "Annotate with Git Blame."
- If GitLens is installed, click commit info to open the commit graph.
- Use "Clear Annotate" to remove annotations.
Search for "Mini Git Blame" in the VS Code marketplace and install.
This version is more concise but retains all essential information about the plugin.