Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My way is a a ugly undo - copy - redo - paste.

Not efficient, sure, but I'm used to it and it solves my problem most of the time



Honestly IMO it's a bit better--often times I find myself wanting neither _this_ nor _that_, but some of each. I get to a point in a function where I realize changes I made elsewhere are no longer needed, but I want to keep my function the same. So I usually just copy the function (and paste it someplace so I don't for real lose it), undo everything, then just splice the function back in how I want it.


The main issue with this I find is a stray keystroke before you redo wiping your redo stack .


I solve this by making a git commit before diving into the undo.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: