|
1 | 1 | ---
|
2 | | - |
3 | | -title: Gitlens Visual File History |
4 | | -description: Learn about Visual File History in Gitlens |
| 2 | +title: GitLens Visual File History |
| 3 | +description: Use GitLens Visual File History to explore file evolution, changes, and authorship over time in VS Code. |
5 | 4 | taxonomy:
|
6 | 5 | category: gitlens
|
7 | 6 |
|
8 | 7 | ---
|
9 | 8 |
|
| 9 | +<kbd>Last updated: August 2025</kbd> |
10 | 10 |
|
11 | | -The Visual File History allows you to quickly see the evolution of a file, including when changes were made, how large they were, and who made them. |
| 11 | +## Visual File History |
12 | 12 |
|
13 | | -To access the Visual File History view, open the GitLens Inspect sidebar. Once the sidebar is open, the view will be available. Alternatively, you can open Visual File History from the Command Palette by using (`cmd/ctrl + shift + P`) > GitLens: Show Visual File History View. |
| 13 | +The GitLens **Visual File History** shows how a file has evolved, including when changes were made, the size of those changes, and who made them. |
14 | 14 |
|
15 | | -<imgsrc="/wp-content/uploads/visual-file-history.png"class="help-center-img img-bordered"> |
| 15 | +--- |
16 | 16 |
|
17 | | -Authors who have contributed changes to the file are on the left y-axis to create a swim-lane of their commits over time (the x-axis). Commit are plotted as color-coded (per-author) bubbles, whose size represents the relative magnitude of the changes. |
| 17 | +### Open Visual File History |
18 | 18 |
|
19 | | -Additionally, each commit's additions and deletions are visualized as color-coded, stacked, vertical bars, whose height represents the number of affected lines (right y-axis). Added lines are shown in green, while deleted lines are red. |
| 19 | +You can open the Visual File History view in two ways: |
20 | 20 |
|
| 21 | +1. From the **GitLens Inspect** sidebar. |
| 22 | + - Open the sidebar, then select the **Visual File History** view. |
| 23 | +2. From the **Command Palette**: |
| 24 | + - macOS: <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> |
| 25 | + - Windows/Linux: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> |
| 26 | + - Search for **GitLens: Show Visual File History View**. |
21 | 27 |
|
22 | | -Gain additional insights on hover. |
| 28 | +<figure> |
| 29 | + <img src="/wp-content/uploads/visual-file-history.png" class="help-center-img img-bordered" alt="Visual File History view in GitLens showing commits plotted by author and time" /> |
| 30 | + <figcaption style="text-align: center; color: #888">Visual File History view</figcaption> |
| 31 | +</figure> |
23 | 32 |
|
24 | | -<imgsrc="/wp-content/uploads/visual-file-history-hover.png"class="help-center-img img-bordered"> |
| 33 | +--- |
25 | 34 |
|
26 | | -<div class='callout callout--warning'> |
27 | | - <p>Community plan is restricted to Public and Local Repositories only.</p> |
28 | | -</div> |
| 35 | +### Understand the Graph |
| 36 | + |
| 37 | +- **Authors (y-axis, left):** Each author is shown in a swimlane, mapping their commits over time. |
| 38 | +- **Commits:** Plotted as color-coded bubbles by author. Bubble size represents the relative magnitude of changes. |
| 39 | +- **Changes (y-axis, right):** Each commit’s additions and deletions are shown as stacked vertical bars. |
| 40 | + - Green = added lines |
| 41 | + - Red = deleted lines |
| 42 | + |
| 43 | +<figure> |
| 44 | + <img src="/wp-content/uploads/visual-file-history-hover.png" class="help-center-img img-bordered" alt="Hover details in Visual File History showing commit metadata and changes" /> |
| 45 | + <figcaption style="text-align: center; color: #888">Commit details on hover</figcaption> |
| 46 | +</figure> |
| 47 | + |
| 48 | +--- |
| 49 | + |
| 50 | +### Gain Insights on Hover |
29 | 51 |
|
30 | | -*** |
| 52 | +Hover over any commit bubble or bar to see details about: |
| 53 | +- Author |
| 54 | +- Commit message |
| 55 | +- Number of additions and deletions |
| 56 | + |
| 57 | +--- |
| 58 | + |
| 59 | +### Availability |
| 60 | + |
| 61 | +<div class='callout callout--warning'> |
| 62 | + <p>The Community plan supports <strong>Public</strong> and <strong>Local</strong> repositories only. A paid GitLens subscription is required for private repositories.</p> |
| 63 | +</div> |
0 commit comments