How to see local history changes in Visual Studio Code?
I'm looking for a way to see my local history changes.
Kind of the equivalent way in WebStorm:
Solution 1:
I think there is no out-of-the-box support for that in VS Code.
You can install a plugin to give you similar functionality. Eg.:
https://marketplace.visualstudio.com/items?itemName=micnil.vscode-checkpoints
Or the more famous:
https://marketplace.visualstudio.com/items?itemName=xyz.local-history
Some details may need to be configured because the VS Code search gets confused sometimes because of additional folders created by this type of plugins. To fix this you can:
- Add the history folder to your
.gitignore
file. - Change the history folder location in the chosen plugin configuration.
- Configure the VS Code search to ignore the history folder.
Solution 2:
I built an extension called Checkpoints, an alternative to Local History. Checkpoints has support for viewing history for all files (that has checkpoints) in the tree view, not just the currently active file. There are some other minor differences aswell, but overall they are pretty similar.
Solution 3:
Basic Functionality
- Automatically saved local edit history is available with the Local History extension.
- Manually saved local edit history is available with the Checkpoints extension (this is the IntelliJ equivalent to adding tags to the local history).
Advanced Functionality
- None of the extensions mentioned above support edit history when a file is moved or renamed.
- The extensions above only support edit history. They do not support move/delete history, for example, like IntelliJ does.
Open Request
If you'd like to see this feature added natively, along with all of the advanced functionality, I'd suggest upvoting the open GitHub issue here.