Issue #79 (Local History in Timeline View)10/25/23
Learn AI in 5 Minutes a Day
We'll teach you how to save time and earn more with AI. Join 70,000+ free daily readers for trending tools, productivity-boosting prompts, the latest news, and more.
|
|
|
In case you missed it, about a year and a half ago VS Code added the ability to
track changes to files you edit and save in your editor independent of source control. This is referred to as
Local History. This means you don't have to have Git initiated for that project and you still have access to a history of file changes. This is similar to Google Drive's automatic file history.
You can access a project's local history in the "Timeline" view of the Explorer panel.
If the project uses Git, you'll notice that by default the Timeline will list both the Git and non-Git changes that have registered. If you click the little "filter" icon at the top right of the Timeline panel, you'll be able to choose whether to view the Git version history along with the local history.
For each entry in the local history list, you have the ability to:
- Compare to the current version of the file
- Compare to another local history entry
- Restore the entry so it's the current one
- Delete the entry
- Rename the entry
Just right-click any entry to determine what to do.
All the settings pertaining to Local History can be found by found by searching for "localHistory" in your settings.
You can disable Local History if you want and, as shown above, you can change the number of entries that are saved as well as the total file size for a single entry.
Now on to this week's hand-picked links!