For example exiting android studio causes it to save all the code and makes CTRL + Z (undo action) reset.
Is there a hot key that does some thing similar?
File -&g