'Enable Bracket Matching' option in Codemirror
This commit is contained in:
parent
5e91287e3e
commit
f54aa3d823
4 changed files with 19 additions and 1 deletions
|
|
@ -64,3 +64,8 @@
|
|||
#code .cm-focused {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
#code .cm-matchingBracket {
|
||||
text-decoration: underline 0.18rem;
|
||||
text-underline-offset: 0.25rem;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ export function SettingsTab({ started }) {
|
|||
const {
|
||||
theme,
|
||||
keybindings,
|
||||
isBracketMatchingEnabled,
|
||||
isLineNumbersDisplayed,
|
||||
isPatternHighlightingEnabled,
|
||||
isActiveLineHighlighted,
|
||||
|
|
@ -137,6 +138,11 @@ export function SettingsTab({ started }) {
|
|||
></ButtonGroup>
|
||||
</FormItem>
|
||||
<FormItem label="Code Settings">
|
||||
<Checkbox
|
||||
label="Enable bracket matching"
|
||||
onChange={(cbEvent) => settingsMap.setKey('isBracketMatchingEnabled', cbEvent.target.checked)}
|
||||
value={isBracketMatchingEnabled}
|
||||
/>
|
||||
<Checkbox
|
||||
label="Display line numbers"
|
||||
onChange={(cbEvent) => settingsMap.setKey('isLineNumbersDisplayed', cbEvent.target.checked)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue