Skip to content

4.1 | Declarative language features

zalan-racz-gaijin edited this page Jun 13, 2024 · 1 revision

Language configuration

While declarative language features are not part of the Language Server Protocol, the file is in this repository, so that all extensions can use them from here. The language configuration is stored in the language-configuration.json.

Comments

The comments property lets the IDE know, what single-line and multiline comments look like so that the user can comment out lines with a shortcut.

Brackets

The brackets property makes the IDE color the corresponding brackets with the same color.

Auto-closing pairs

The autoClosingPairs property makes the IDE paste the 2nd element of the pair if the user types the first element.

Surrounding pairs

The surroundingPairs property makes the IDE surround the selected code with the pair if the user types the first element of the pair.

Indentation rules

The indentationRules property tells the IDE when to increase and decrease the indentation level when the user presses enter.

Useful resources

Clone this wiki locally