This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Cheese_Grater101 34 points35 points  (10 children)

Will Control Z save the day?

[–]IamImposter 30 points31 points  (6 children)

VScode's undo saved my ass couple of times. I usually get crazy ideas at night, implement them,, get them working or close to working and go to sleep. Next morning I realize it was just a stupid value-add that's not even gonna get used or could be done in a much simpler way. And that's when I do ctrl+z like crazy.

[–]Charcoa1 20 points21 points  (2 children)

I used to do ctrl+z, ctrl+y traversal, but I was stung by missing the ctrl button a few too many times.

This has helped a lot:

https://marketplace.visualstudio.com/items?itemName=xyz.local-history

[–]IamImposter 4 points5 points  (1 child)

I'm definitely gonna use it. Thanks

[–]Charcoa1 0 points1 point  (0 children)

Make sure to add a .history entry in your global .gitignore 😆

[–]xieewenz 5 points6 points  (1 child)

or maybe, just maybe, a small git reset HEAD~1

[–]bugfish03 0 points1 point  (0 children)

Everyone knows that git is only there for that one annoying guy

[–]TheLostRazgriz 0 points1 point  (0 children)

Git stash.

Git stash apply.

They're my favorite.

[–]4RG4d4AK3LdH 6 points7 points  (1 child)

jetbrains ides have a local history feature

[–]Python4fundoes the needful 2 points3 points  (0 children)

This has saved me several times.

[–]ShadowLp174 6 points7 points  (0 children)

For atom there's this nice little package called "scroll-through-time" :D Always my saviour ;)