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 history
  • Alt + Shift + H = Local history
IntelliJ IDEA local history

See this feature in action in this video.