News for hackers. Stuff that matters.
Re:Why is it so hard to see code from 5 minutes ago? by enobrev on Thursday February 18, 2021 @08:53PM (#26188544)
JetBrains' various apps can do this as well with a feature called "Show Local History". I'm not sure where it is in the menus but you can hit shift twice and type it in.

It automatically commits after every change since the IDE was opened, and can easily be diffed and reverted as needed. Reverting saves another entry, so you can revert back to the future as well.

Re:Why is it so hard to see code from 5 minutes ago? by voodootrucker on Thursday February 18, 2021 @09:37PM (#26188891)
This. I've seen developers _think_ they lost code in Android Studio and spend hours trying to recreate it when it was in local history all along...
Re:Why is it so hard to see code from 5 minutes ago? by Quekid5 on Thursday February 18, 2021 @09:01PM (#26188603)
It's in the context menu for files/classes at least.
Re:Why is it so hard to see code from 5 minutes ago? by cmehdy on Thursday February 18, 2021 @09:48PM (#26188991)
IIRC you can right-click on the column with line numbers to the left of the main editor and you'll have that option too
Re:Why is it so hard to see code from 5 minutes ago? by watwut on Friday February 19, 2021 @03:24AM (#26190834)
Eclipse has the same thing.