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 View

Adds a GitLens view to the Explorer activity to explore repositories or file histories

For more advanced customizations open User Settings and search for gitlens.gitExplorer

Code Lens

Adds Git authorship code lens to the top of the file and on code blocks

For more advanced customizations open User Settings and search for gitlens.codeLens Use the GitLens: Toggle Git Code Lens command to override this setting for the current window

Current Line Blame

Adds an unobtrusive Git blame annotation to the end of the current line

For more advanced customizations open User Settings and search for gitlens.currentLine Use the GitLens: Toggle Line Blame Annotations command to override this setting for the current window

Gutter Blame

Adds Git blame annotations for the current file to the gutter

Quickly tell the age of a line — indicator ranges from bright yellow (newer) to dark brown (older)

Compacts (deduplicate) matching adjacent blame annotations

For more advanced customizations open User Settings and search for gitlens.blame

Hovers

Adds detailed Git blame information accessible via hovers

Status Bar Blame

Adds a Git blame annotation about the current line to the status bar

For more advanced customizations open User Settings and search for gitlens.statusBar Use the GitLens: Toggle Line Blame Annotations command to override this setting for the current window

Keyboard Shortcuts

Search for gitlens in the Keyboard Shortcuts editor to see the shortcuts and to customize them further