GitLens Documentation

GitLens Visual File History

Last updated: September 2026

Visual History

The GitLens Visual History (formerly Visual File History) shows how your code has evolved, including when changes were made, the size of those changes, and who made them. Visual History supports multiple scopes: view the history of a single file, a folder, an entire repository, or a specific branch.


Open Visual History

You can open the Visual History view in two ways:

  1. From the GitLens Inspect sidebar.
    • Open the sidebar, then select the Visual History view.
  2. From the Command Palette:
    • macOS: Cmd + Shift + P
    • Windows/Linux: Ctrl + Shift + P
    • Search for GitLens: Show Visual History View.

Scope Options

  • File or Folder: Visualize the history of a specific file or folder
  • Repository: See the full history of your entire repository
  • Branch: Slice history by branch to focus on a specific line of work
Visual History view for CHANGELOG.md showing eight commits by four authors plotted as colour-coded bubbles over the last four weeks, with the additions and deletions of each commit shown as bars
Visual History view

Understand the Graph

  • Authors (y-axis, left): Each author is shown in a swimlane, mapping their commits over time.
  • Commits: Plotted as color-coded bubbles by author. Bubble size represents the relative magnitude of changes.
  • Changes (y-axis, right): Each commit’s additions and deletions are shown as stacked vertical bars.
    • Green = added lines
    • Red = deleted lines
Hover details in Visual File History showing commit metadata and changes
Commit details on hover

Gain Insights on Hover

Hover over any commit bubble or bar to see details about:

  • Author
  • Commit message
  • Number of additions and deletions

Availability

The Community plan supports Public and Local repositories only. A paid GitLens subscription is required for private repositories.

Have feedback about this article? Did we miss something? Let us know!
On this page