GitLens Documentation

Start Here

Last updated: November 2026


GitLens is a Git extension for Visual Studio Code. You can download GitLens from the VS Code Marketplace:

Install GitLens

Besides blame, hovers, and annotations, GitLens supports these workflows:


Interactive Code History

 

In a repository with many branches and contributors, it can be hard to see who made each change, when, and why. The Commit Graph, GitLens Inspect, and Inline Blame and Hovers let you navigate your repository’s history and act on it.

Commit Graph

The Commit Graph is the main view in the GitLens sidebar and your starting point for working with GitLens. With a repository open in VS Code, it shows your commit and branch history, and you can act on any branch or commit from it. Follow what happens on each branch over time, and read the commit messages to see why each change was made. To jump to any point in history, search for a branch or commit.

The Commit Graph opens automatically in the GitLens sidebar. You can also open the Command Palette (Ctrl/⌘ + Shift + P) and run GitLens: Show Commit Graph View.

Open the Commit Graph in GitLens.

GitLens Inspect

GitLens Inspect shows the details of a single commit. To open it, right-click a commit and select Inspect Details. Inspect shows which files and lines the commit modified, and you can step through the history of a file or line to see how it changed over time. Autolinks show related items, such as Jira issues or pull requests.

Open the Inspect View in GitLens.

Inline Blame and Hovers

Inline Blame and Hovers show who changed a line in a file, when, and why. To see the inline blame, open a file and select a line. Hover over the blame to act on the change, such as viewing the previous revision, opening the pull request it was included in, or opening the commit in the Commit Graph.


Accelerate PR Reviews

 

Launchpad and Worktrees let you review pull requests without leaving Visual Studio Code. Launchpad groups your pull requests by the action you need to take, so you do not search through unrelated pull requests in a browser. Worktrees give you separate working directories, so checking out a pull request’s branch does not interrupt your work in progress.

Launchpad PRO

To use Launchpad, connect the GitHub integration. Then open the Command Palette (Ctrl/⌘ + Shift + P) and run GitLens: Open Launchpad.

Launchpad shows pull requests that are open on your current branch, blocked, need your review, require follow-up, are waiting for a review, or are in draft.

To review a pull request, select it, then select Open in Worktree or Switch to Branch.

Open the Launchpad in GitLens.

This feature is only available for Pro subscription tiers or higher

Worktrees

Worktrees give you separate working directories, so you can check out and work in several branches at once. You can review a pull request without committing or stashing the changes you are working on.

After you open a worktree, review the pull request’s changes in the Pull Request view. It lists the commits and changed files, and you can open the diff of each file.

Open the Worktree View in GitLens.

The Community plan supports only public and local repositories.


Streamline Collaboration

 

With Cloud Patches, you can share code without committing or pushing it to a remote, so your repository does not fill up with commits and branches that are not ready. With Code Suggest, you can apply edits that reviewers suggest to any file in the repository, including files the pull request did not modify.

Cloud Patches PRO

Cloud Patches are Git patches that you share with anyone in your GitKraken organization. Recipients apply a patch to their working directory to keep collaborating on the changes or commit them to the repository.

To create a Cloud Patch, make and save changes to any file in a repository. Then open the Command Palette (Ctrl/⌘ + Shift + P) and run GitLens: Share as Cloud Patch….

The members you share it with see the patch in the Cloud Patches view, where they can apply it to their working directory.

Open the Cloud Patches View in GitLens.

This feature is only available for Pro subscription tiers or higher

Code Suggest PRO

A Code Suggestion proposes edits to any file in a repository and is attached to an open pull request. Reviewers create Code Suggestions in GitKraken Desktop.

To review one in GitLens, expand the pull request in a GitLens view, expand Code Suggestions, and select the suggestion. In Patch Details, select Apply Patch to apply the changes to your working tree, then Accept or Reject the suggestion. See GitLens Code Suggest.

This feature is only available for Pro subscription tiers or higher


Improve Workflows With Integrations

 

Integrations and Autolinks connect GitLens to the services where you track your work, so you switch to them less often.

Integrations

Connect GitLens to GitHub, GitLab, Azure DevOps, or Bitbucket to track your pull requests in Launchpad without leaving GitLens.

Autolinks

GitLens integrations link to external services such as Jira and Trello, so you can reference issues and tickets in your workflow.

You can also create custom autolinks with pattern-matching rules. They link external references, such as Jira issues or Zendesk tickets, in your commit messages.


Other places to check out

To submit a feature request or bug report, use the public GitHub repository.
GitHub Repository

Join the public GitKraken Slack community to talk with other GitLens users.
GitKraken Slack

If you cannot find what you need in the documentation, paid users can contact the support team.
Contact Support

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