Skip to content

Commit

Permalink
Document bracket configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ollien committed Jul 22, 2024
1 parent 3a278bb commit 13589bd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [Unreleased]

### Added

- Added support for `do`/`end` and `fn`/`end` as brackets for VSCode, enabling
bracket colorization and bracket navigation features.

## [0.0.16]

### Added
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,28 @@ The path should look something like
Controls whether notifications are shown after automatic installs of new Lexcial
versions. Defaults to `true`.

### Editor Configuration

The extension provides a language configuration for Elixir which marks
`do`/`end` and `fn`/`end` as brackets. Among other things, this enables
colorization of `do`/`end` and `fn`/`end` with VSCode's
`editor.bracketPairColorization.enabled` setting. While this can be helpful when
searching for a `do`'s corresponding `end`, some users may prefer to use the
standard keyword coloring, while still highlighting parenthesis and other
brackets. This can be achieved by adding the following to your VSCode
configuration.

```jsonc
"editor.bracketPairColorization.enabled": true,
"[elixir]": {
"editor.language.colorizedBracketPairs": [
["{", "}"],
["[", "]"],
["(", ")"]
]
}
```

### Erlang and Elixir version compatibility

#### Erlang
Expand Down

0 comments on commit 13589bd

Please sign in to comment.