I would love to be able to see my local history for a file like you can do in intelliJ.
That would be amazing. Jetbrains has probably the best local history support. There are a couple of extensions for VS Code but they aren't as convenient.
please add this option please
I m afried of Git, and this story make me more afreid of using it.
THIS THING DELETED 3 MONTHS OF WORK!!!!
https://github.com/microsoft/vscode/issues/32405
single programers we don t need all the git complexity.
+1 (just few mins ago, wanna discard some changes in just few files... discarded all unstaged files...)
Can anyone please suggest - "How can I see my local file history changes in VS code like we can check in eclipse IDE? Sometimes we do changes a lot in single file before commit and this feature can be really handy to check entire day's changes in one file. I have checked few plugins like "Local History" but the changed files keep on adding in my git changes section and changed file numbers keep on increasing. I doubt if I am using it correctly. Please suggest best plugin or options for it. Thanks
For reference, there is an extension, but it's not nearly as powerful as what's offered in IntelliJ/WebStorm.
Examples of features that I'd like to see if this were to be implemented:
This feature set also has synergy with #43555, #52844, and #9390.
This is something that would be super helpful. even just to be able to save undo across sessions would be amazing.
Here's a horror story. I had all my files tracked in Git and began writing code for a new feature that used an API at the end of a file, so my workspace had uncommited changes. Because I had to wait for approval for more API quota to continue developing and testing my code and because my code wasn't yet commit worthy, I continued work on other projects and forgot I had uncommited changes in that repository.
A few days later I was experimenting with some VS Code features and I needed to purposefully create some linting errors in a file to test it out, so I opened that same repository and randomly deleted a few lines at the top of the file I had been working on a few days before. I mistakenly thought I could just "discard changes" in the Source Control tab and Git would bring my file back, reinserting the lines I deleted. I closed the file, losing the ability to undo (cmd+z) the deleted lines. As I was ready to reverse the deleted lines, I hopped onto the Source Control tab and only seeing the deleted lines at the top of the file (I did not look at the Ruler on the right hand side to see I had more uncommited changes), I pressed "Discard Changes".
A few days later my request for API quota was approved and I reopened the file. As I scrolled to the end of the file my jaw dropped and I started replaying this cute little story in my head, trying to understand out how the hell had I figured out a way to permanently delete my own work.
TL;DR
Local history would have saved me from having to spend a few minutes (but it could have been hours or days) rewriting permanently lost code.
I would love an ETA on this feature and a comment on what's blocking it from being shipped.
I would love this feature! 馃槏
+1
This feature is useful
Any update about this feature
+1
Today i stopped using VS Code after 4 years and switched to IntelliJ. THIS IS THE REASON WHY. I love VS Code, but a editor without local history is gabrage.
I just lost 30 file of refactoring because a commit issue - probably wasnt VS Code(probably husky), but it leaks local history.
VS code should add this feature ASAP otherwise sooner or later, developers find other IDE to work Because we all do mistakes and high chances of losing our work in the absence of this feature.
Team Explorer does let you view history for any changed files, but I don't see how to use it for a file that hasn't been changed...
Just now, after I git reset hard, I found all files I didn't staged was lost. It's so frustrating my day work just go away.
I had the problem that Prettier commit pre hook got stuck and i lost the files
Most helpful comment
That would be amazing. Jetbrains has probably the best local history support. There are a couple of extensions for VS Code but they aren't as convenient.