Now 50% off Gitkraken Pro

How does GitLens help you explore file history and branches directly in VS Code?

Understanding how code evolves over time is essential for debugging, reviewing changes, and maintaining a clean repository history. Developers often need to answer questions such as: When was this line of code added? Which branch introduced this change? How did a file evolve across multiple commits?

Without the right tools, answering these questions requires running multiple Git commands or switching between the editor and external tools. GitLens brings this information directly into the IDE.

FeatureDescription
File HistoryDisplays the full commit history for a file, making it easy to understand how it has changed over time.
Line HistoryShows the commit history for a specific line or range of lines, providing precise context for individual code changes.
Inline Blame AnnotationsDisplays the author, date, and commit message for each line directly in the editor.
Revision NavigationAllows developers to step through previous versions of a file to see how it looked at different points in history.
Commit Graph (Pro)An interactive visual graph of repository history that supports filtering, searching, and exploring branches.
Branch ExplorationDevelopers can switch branches, inspect commits, and explore repository history without leaving the IDE.

Additional Resources

Visual Studio Code is required to install GitLens.

Don’t have Visual Studio Code? Get it now.

Team Collaboration Services

Secure cloud-backed services that span across all products in the DevEx platform to keep your workflows connected across projects, repos, and team members
Launchpad – All your PRs, issues, & tasks in one spot to kick off a focused, unblocked day. Code Suggest – Real code suggestions anywhere in your project, as simple as in Google Docs. Cloud Patches – Speed up PR reviews by enabling early collaboration on work-in-progress. Workspaces – Group & sync repos to simplify multi-repo actions, & get new devs coding faster. DORA Insights – Data-driven code insights to track & improve development velocity. Security & Admin – Easily set up SSO, manage access, & streamline IdP integrations.
winget install gitkraken.cli