Get all available formatters for the given editor's language
Get the scope at which the formatter is currently configured for the given editor. Returns undefined if no formatter is configured.
The text editor
The preference scope where the formatter is set, or undefined
Get the default formatter ID for the given language and resource URI. This is used internally during formatting operations.
The language identifier
The resource URI
The formatter ID or undefined if not set
Get the complete formatter status including the formatter info, scope, and validation state. This is the preferred method to get formatter information as it provides all necessary context.
Set the default formatter for the given language or editor's language
The language ID or editor to set the formatter for
The formatter ID, or undefined to clear the setting
The preference scope to save to
Event fired when formatters change (e.g., new formatter registered/unregistered)