Skip to main content
Extensions can read and update Klyx’s editor settings through the Settings service. Editor settings control Klyx’s built-in editor behavior and are reactive — changes are reflected in real time.

Settings service

Access the settings service with:

Observing settings

Updating editor settings

Convenience extensions

EditorSettings

The EditorSettings data class controls the code editor’s behavior. All fields have sensible defaults.

Available settings

deleteMultiSpaces

This setting controls how many spaces are deleted when pressing backspace. It is typed as Int rather than Boolean:
Setting it to 0 disables multi-space deletion entirely.

MouseMode

The editor’s mouse behavior enum:

AppTheme

The application theme enum:

Example

Observe editor font size changes and update them: