Format On Idle
This a very simple extension that enables formatting of the current file after a period of inactivity.
By default it is enabled for all file extensions (except files without extensions).
When the current file has an extension and an available formatter, a button is displayed in the status bar (a watch with a tick or a cross next to it) indicating if Format On Idle is enabled for the current file extension:
Click the button to disable or enable.
Once a file extension has been enabled or disabled, the state is stored in your settings and the extension will no longer be enabled for all file extensions.
The position of the status bar button can be configured using
You can install the latest version of the extension via the Visual Studio Marketplace here.
The source code is available on GitHub here.
Files without extensions are not considered.