Autosave on switch focus

I have configured eslint so it runs fix when saving. I'm used to vscode's functionality where it saves (and therefore also fixes) when you switch focus, aka go to a different editor tab or a different tool window. Is this possible?


Please try enabling Save files on frame deactivation (Settings | Appearance & Behavior | System Settings) - when it's on, modified files are auto-saved when you switch to a different application


Thank you for your reply. I don't mean switching focus to a different application but within WebStorm, so to a different tab or tool window. Is there a way to do this?


It only works when moving away from the IDE (i.e. on changing focus to the other app) or when switching to the built-in terminal


A couple of things here to anyone coming from Google:

The option for this feature is now named “Save files when switching to a different application or a built-in terminal” and it auto-saves when your IDE loses focus. Deselecting this will stop this behavior.

Secondly, VSCode's default functionality is _not_ to automatically save when switching focus from a tab or even window. What VSCode keeps in its buffer is different from when it actually saves the file on disk.