GitLens supercharges the Git capabilities built into Visual Studio Code. It helps you to visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more.

GitLens is an open-source extension for Visual Studio Code created by Eric Amodio.

GitLens simply helps you better understand code. Quickly glimpse into whom, why, and when a line or code block was changed. Jump back through history to gain further insights as to how and why the code evolved. Effortlessly explore the history and evolution of a codebase. Dive right in and see how GitLens can help!

While GitLens is powerful and feature rich, it is also highly customizable to meet your specific needs — find code lens intrusive or the current line blame annotation distracting — no problem, it is quick and easy to turn them off or change how they behave via the built-in GitLens Settings editor, an interactive editor covering many of GitLens' powerful settings. While for more advanced customizations, refer to the GitLens docs and edit your User Settings.

Configure GitLens

Don't miss how easy it is to configure GitLens!

What's New in GitLens 9.9

See the release notes for the full set of changes

  • 9.9.1 JULY  2019
  • FIXEDFixes #797 — Branch diff against master shows incorrect files in two-dot mode
  • 9.9.0 JULY  2019
  • NEWAdds guided (step-by-step) access to common Git commands (and their flags) via the all-new Git Commands command (gitlens.gitCommands)
    Quickly navigate and execute Git commands through easy-to-use menus where each command requires an explicit confirm step before executing
  • NEWAdds Open All Changes, Open All Changes with Working Tree, Open Files, and Open Revisions commands to files changed nodes in the views — closes #760
  • NEWAdds working tree comparison support to the Compare Current Branch with <branch, tag, or ref> node within each repository in the Repositories view

    Adds a Switch to Working Tree Comparison command or Switch to Branch Comparison command to the Compare Current Branch with <branch, tag, or ref> node

    Changes gitlens.views.repositories.showBranchComparison to also specify the default type of comparison — either with the current branch or the working tree

  • NEWAdds Switch to Two-dot Comparison and Switch to Three-dot Comparison commands to specify whether to use the symmetric difference (three-dot) notation or the range (two-dot) notation for the comparison — applies to all comparisons in the views
  • NEWAdds a new ${tips} format token to show an indicator if the commit is a tip of any branches or tags — closes #792
  • IMPROVEDImproves performance and memory consumption
  • IMPROVEDChanges the Checkout command on remote branches to create and checkout a new local branch rather than checkout a detached HEAD — closes #709
  • IMPROVEDChanges folders in the views to expand by default when using Tree Layout
  • FIXEDFixes #791 — Notification of unstashed changes in working directory on failed checkout
  • FIXEDFixes #795 — Commit quick access icons replaced with open file actions in File History View
  • FIXEDFixes issue with the JSON schema of a configuration setting
{{ endOfBody }}