Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git Latest TraceNew to Visual Studio Code? Get it now.
Git Latest Trace

Git Latest Trace

samjack

|
69 installs
| (0) | Free
Displays the last commit information, including author and timestamp, for each line of code in the current file. Easily track who made the last change and when, directly in your editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Latest Trace

Git Latest Trace 是一个 Visual Studio Code 扩展,用于显示当前文件中每行代码的最后提交信息,包括作者和时间戳。这个工具可以帮助您轻松追踪谁最后修改了代码,以及修改的时间。

功能

  • 显示每行代码的最后提交作者和日期
  • 支持切换显示/隐藏 Git 信息
  • 日期格式化:显示"昨天"或具体日期
  • 优化大文件处理性能
  • 预加载可见范围上下 300 行的 Git 信息

新增功能

  • 性能优化:现在只处理可见范围的代码行,大大提高了大文件的处理速度
  • 预加载机制:预先加载可见范围上下 300 行的 Git 信息,提供更流畅的滚动体验
  • 缓存系统:缓存已获取的 Git 信息,减少重复请求,提高响应速度
  • 按需更新:仅在滚动或切换文件时更新 Git 信息,减少不必要的操作

使用方法

  1. 在 VS Code 中打开一个 Git 仓库中的文件。
  2. 使用命令面板(Cmd+Shift+P 或 Ctrl+Shift+P)运行 "Git 溯源" 命令。
  3. Git 信息将显示在每行代码的左侧。
  4. 再次运行 "Git 溯源" 命令可以切换显示/隐藏 Git 信息。

注意事项

  • 首次加载大文件时可能需要稍长时间,之后的滚动和操作将会更加流畅。
  • 切换文件时会清除缓存,首次加载新文件可能会有短暂延迟。

许可证

本项目采用 MIT 许可证。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft