Reveal Edit History in Visual Studio Code

Steven Jul 09, 2026

Ever found yourself wishing you could revert a change in your Visual Studio Code (VSCode) project, or perhaps you're curious about who made a particular edit? VSCode, being a powerful and feature-rich editor, offers a way to view the edit history of your files. This can be incredibly helpful for tracking changes, debugging issues, or even learning from your past coding decisions.

How to Install Visual Studio Code on Windows PC & Laptop
How to Install Visual Studio Code on Windows PC & Laptop

In this guide, we'll walk you through the process of viewing the edit history in VSCode, making it easier for you to navigate your project's evolution over time. So, let's dive right in!

Visual Studio Code Tutorial for Beginners - Introduction
Visual Studio Code Tutorial for Beginners - Introduction

Understanding VSCode's Edit History

VSCode keeps a log of changes made to your files, including additions, deletions, and modifications. This log is stored in a hidden '.vscode/history' folder within your workspace. Each file has its own history file, which records every change made to that file.

Visual Studio Code setup—Part 1
Visual Studio Code setup—Part 1

Before we proceed, it's important to note that this feature is not enabled by default. We'll guide you through enabling and using it in the following sections.

Enabling Edit History

Recover Unsaved Visual Studio Code Files: Simple Ways
Recover Unsaved Visual Studio Code Files: Simple Ways

To start tracking changes in your files, you need to enable the edit history feature. Here's how you can do it:

  1. Open VSCode and go to your workspace.
  2. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the command palette.
  3. Type 'History: Enable' and press Enter.

Once enabled, VSCode will start recording changes to your files. You can verify this by checking if the '.vscode/history' folder has appeared in your workspace.

VS Code: Getting Started, literally
VS Code: Getting Started, literally

Viewing Edit History

Now that you've enabled edit history, let's see how you can view the changes made to your files. Here's a step-by-step guide:

  1. Open the file for which you want to view the history.
  2. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the command palette.
  3. Type 'History: Show' and press Enter.
the visual studio code shortcuts are displayed in this screenshoter's image
the visual studio code shortcuts are displayed in this screenshoter's image

A new panel will open on the right side of your screen, displaying the edit history of the file. You'll see a list of changes, including the type of change (addition, deletion, or modification), the author, the date and time, and the change itself.

Navigating and Reverting Changes

Ready to Code Python in Visual Studio? Let’s Set It Up
Ready to Code Python in Visual Studio? Let’s Set It Up
How to Customize Visual Studio Code
How to Customize Visual Studio Code
an image of a computer screen with some text on the bottom right corner and another screenshot in the middle left corner
an image of a computer screen with some text on the bottom right corner and another screenshot in the middle left corner
Visual studio code – for writing XS – Age of Mythology Heaven
Visual studio code – for writing XS – Age of Mythology Heaven
Visual Studio Code Crash Course
Visual Studio Code Crash Course
Visual Studio Code 1.65 overhauls editor history navigation
Visual Studio Code 1.65 overhauls editor history navigation
how to create simple desktop apps in visual studio
how to create simple desktop apps in visual studio
August 2022 (version 1.71)
August 2022 (version 1.71)
a man sitting at a desk with the text how to do this new editing setup
a man sitting at a desk with the text how to do this new editing setup
the different types of web pages are shown in this image, including text and icons
the different types of web pages are shown in this image, including text and icons
an image of a computer screen with many lines and numbers on the bottom right corner
an image of a computer screen with many lines and numbers on the bottom right corner
best editing apps
best editing apps
10 Visual Studio Code Themes That Are Easy on the Eyes - Make Tech Easier
10 Visual Studio Code Themes That Are Easy on the Eyes - Make Tech Easier
How to Use VSCode on WSL - Make Tech Easier
How to Use VSCode on WSL - Make Tech Easier
an image of the basic editing process for texting and other things to do with it
an image of the basic editing process for texting and other things to do with it
Aesthetic Video Editing Tips #videotips #aesthetic
Aesthetic Video Editing Tips #videotips #aesthetic
How to Program Collaboratively Using Visual Studio Code's Live Share
How to Program Collaboratively Using Visual Studio Code's Live Share
My Visual Studio Code Setup
My Visual Studio Code Setup
Visual Studio Code vs VSCodium: What's the Difference? - Make Tech Easier
Visual Studio Code vs VSCodium: What's the Difference? - Make Tech Easier
tg: webguild
tg: webguild

Now that you can see the edit history, let's explore how you can navigate and revert changes if needed.

Navigating the Edit History

You can use the up and down arrow keys to navigate through the list of changes. The current change will be highlighted, and the file will be updated to reflect that change. This allows you to review the evolution of your code over time.

Reverting Changes

If you come across a change that you'd like to undo, you can revert it with just a few clicks. Here's how:

  1. Navigate to the change you want to revert using the arrow keys.
  2. Click on the Revert button at the top of the panel.
  3. Confirm the revert by clicking Yes in the prompt that appears.

The change will be undone, and your file will be updated to reflect the revert.

And there you have it! You now know how to enable, view, navigate, and revert changes in the edit history of your VSCode files. This feature can be a powerful tool for tracking changes, debugging issues, and learning from your past coding decisions. Happy coding!