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 Explorer

Adds a GitLens explorer to navigate and explore repositories or file histories

Compacts (flattens) unnecessary file nesting when using a tree layout

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

GitLens Results

Adds an on-demand GitLens Results view to explore commits, histories, and searches, or visualize comparisons between branches, tags, commits, and more

Compacts (flattens) unnecessary file nesting when using a tree layout

For more advanced customizations open User Settings and search for gitlens.resultsExplorer or gitlens.explorers

Code Lens

Adds authorship code lens to the top of files 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 blame annotation at 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 on-demand gutter blame annotations for the whole file

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

Compacts (deduplicates) matching adjacent blame annotations

For more advanced customizations open User Settings and search for gitlens.blame Press Esc to turn off the annotations

Hovers

Adds detailed blame information accessible via hovers

Recent Changes

Adds on-demand recent changes annotations to highlight lines changed by the most recent commit

Use the GitLens: Toggle Recent File Changes Annotations command to turn the annotations on or off Press Esc to turn off the annotations

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