Autosave all open files when switching applications, a la PHPStorm.