void/extensions/csharp/language-configuration.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

113 lines
1.3 KiB
JSON
Raw Permalink Normal View History

2024-09-11 02:37:36 +00:00
{
"comments": {
"lineComment": "//",
2025-03-01 02:01:53 +00:00
"blockComment": [
"/*",
"*/"
]
2024-09-11 02:37:36 +00:00
},
"brackets": [
2025-03-01 02:01:53 +00:00
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
]
2024-09-11 02:37:36 +00:00
],
"autoClosingPairs": [
2025-03-01 02:01:53 +00:00
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
{
"open": "'",
"close": "'",
"notIn": [
"string",
"comment"
]
},
{
"open": "\"",
"close": "\"",
"notIn": [
"string",
"comment"
]
}
2024-09-11 02:37:36 +00:00
],
"surroundingPairs": [
2025-03-01 02:01:53 +00:00
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"<",
">"
],
[
"'",
"'"
],
[
"\"",
"\""
]
2024-09-11 02:37:36 +00:00
],
"folding": {
"markers": {
"start": "^\\s*#region\\b",
"end": "^\\s*#endregion\\b"
}
2025-03-01 02:01:53 +00:00
},
"onEnterRules": [
// Add // when pressing enter from inside line comment
2025-04-29 07:07:20 +00:00
// We do not want to match /// (a documentation comment)
2025-03-01 02:01:53 +00:00
{
"beforeText": {
2025-04-29 07:07:20 +00:00
"pattern": "[^\/]\/\/[^\/].*"
2025-03-01 02:01:53 +00:00
},
"afterText": {
"pattern": "^(?!\\s*$).+"
},
"action": {
"indent": "none",
"appendText": "// "
}
},
2025-04-29 07:07:20 +00:00
// Add /// when pressing enter from anywhere inside a documentation comment.
// Documentation comments are not valid after non-whitespace.
{
"beforeText": {
"pattern": "^\\s*\/\/\/"
},
"action": {
"indent": "none",
"appendText": "/// "
}
},
2025-03-01 02:01:53 +00:00
]
2024-09-11 02:37:36 +00:00
}