Local history in IntelliJ IDEA
Never lose editor changes with Local History — even in between your Git commits.
Bonus tip: assign shortcuts for quick access, e.g.:
Alt
+H
= Git historyAlt
+Shift
+H
= Local history
See this feature in action in this video.