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 a free, open-source extension for Visual Studio Code created by Eric Amodio.

GitLens simply helps you understand code better. Quickly glimpse into who, 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. Explore the history and evolution of a codebase. Dive right in and see how GitLens can help!

Here are just some of the features that GitLens provides,

  • a GitLens explorer to navigate and explore repositories or file histories
  • an on-demand GitLens Results view to explore commits, histories, and searches, or visualize comparisions between branches, tags, commits, and more
  • Git authorship code lens showing the most recent commit and # of authors to the top of files and/or on code blocks
  • an unobtrusive Git blame annotation to the end of the current line
  • on-demand Git blame annotations, including a heatmap, to the gutter for the whole file
  • detailed Git blame information accessible via hovers
  • a status bar Git blame annotation showing author and date, by default, about the current line
  • many powerful commands for exploring commits and histories, comparing and navigating revisions, stash access, repository status, and more

GitLens is powerful, feature rich, and 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, a WYSIWYG editor covering many of GitLens' powerful settings. While for more advanced customizations, refer to the GitLens settings docs and edit your User Settings.

Customize

Learn