LanguageConfiguration

The language configuration interfaces defines the contract between extensions and various editor features, like automatic bracket insertion, automatic indentation etc.

Online Documentation

Properties

Link copied to clipboard

The language's auto closing pairs.

Link copied to clipboard
abstract external var brackets: ReadonlyArray<CharacterPair>?

The language's brackets. This configuration implicitly affects pressing Enter around these brackets.

Link copied to clipboard
abstract external var comments: CommentRule?

The language's comment settings.

Link copied to clipboard
abstract external var indentationRules: IndentationRule?

The language's indentation settings.

Link copied to clipboard
abstract external var onEnterRules: ReadonlyArray<OnEnterRule>?

The language's rules to be evaluated when pressing Enter.

Link copied to clipboard
abstract external var wordPattern: RegExp?

The language's word definition. If the language supports Unicode identifiers (e.g. JavaScript), it is preferable to provide a word definition that uses exclusion of known separators. e.g.: A regex that matches anything except known separators (and dot is allowed to occur in a floating point number):