-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add autoCloseBefore to make autoclose smarter
- Loading branch information
ffm
committed
Nov 24, 2022
1 parent
e722634
commit 48c9390
Showing
2 changed files
with
56 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,58 @@ | ||
{ | ||
"capabilities": { | ||
"documentOnTypeFormattingProvider": { | ||
"firstTriggerCharacter": "}", | ||
"moreTriggerCharacter": [ | ||
";", | ||
"," | ||
] | ||
}, | ||
"documentRangeFormattingProvider": "true", | ||
"renameProvider": "true", | ||
"documentHighlightProvider": "true", | ||
"referencesProvider": "true" | ||
"capabilities": { | ||
"documentOnTypeFormattingProvider": { | ||
"firstTriggerCharacter": "}", | ||
"moreTriggerCharacter": [";", ","] | ||
}, | ||
"folding": { | ||
"markers": { | ||
"start": "[{\\[(]\\s*$", | ||
"end": "^\\s*[}\\])]" | ||
} | ||
}, | ||
"comments": { | ||
// symbol used for single line comment. Remove this entry if your language does not support line comments | ||
"lineComment": "#" | ||
"documentRangeFormattingProvider": "true", | ||
"renameProvider": "true", | ||
"documentHighlightProvider": "true", | ||
"referencesProvider": "true" | ||
}, | ||
"folding": { | ||
"markers": { | ||
"start": "[{\\[(]\\s*$", | ||
"end": "^\\s*[}\\])]" | ||
} | ||
}, | ||
"comments": { | ||
// symbol used for single line comment. Remove this entry if your language does not support line comments | ||
"lineComment": "#" | ||
}, | ||
// symbols used as brackets | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"] | ||
], | ||
// symbols that are auto closed when typing | ||
"autoClosingPairs": [ | ||
{ | ||
"open": "{", | ||
"close": "}" | ||
}, | ||
// symbols used as brackets | ||
"brackets": [ | ||
[ | ||
"{", | ||
"}" | ||
], | ||
[ | ||
"[", | ||
"]" | ||
], | ||
[ | ||
"(", | ||
")" | ||
] | ||
], | ||
// symbols that are auto closed when typing | ||
"autoClosingPairs": [ | ||
{ | ||
"open": "{", | ||
"close": "}" | ||
}, | ||
{ | ||
"open": "[", | ||
"close": "]" | ||
}, | ||
{ | ||
"open": "(", | ||
"close": ")" | ||
}, | ||
{ | ||
"open": "\"", | ||
"close": "\"", | ||
"notIn": [ | ||
"string" | ||
] | ||
} | ||
], | ||
// symbols that that can be used to surround a selection | ||
"surroundingPairs": [ | ||
[ | ||
"{", | ||
"}" | ||
], | ||
[ | ||
"[", | ||
"]" | ||
], | ||
[ | ||
"(", | ||
")" | ||
], | ||
[ | ||
"\"", | ||
"\"" | ||
] | ||
] | ||
} | ||
{ | ||
"open": "[", | ||
"close": "]" | ||
}, | ||
{ | ||
"open": "(", | ||
"close": ")" | ||
}, | ||
{ | ||
"open": "\"", | ||
"close": "\"", | ||
"notIn": ["string"] | ||
} | ||
], | ||
|
||
"autoCloseBefore": ";=}]) \n\t", | ||
|
||
// symbols that that can be used to surround a selection | ||
"surroundingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters