Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/csharp/language-configuration.json
3309 views
1
{
2
"comments": {
3
"lineComment": "//",
4
"blockComment": [
5
"/*",
6
"*/"
7
]
8
},
9
"brackets": [
10
[
11
"{",
12
"}"
13
],
14
[
15
"[",
16
"]"
17
],
18
[
19
"(",
20
")"
21
]
22
],
23
"autoClosingPairs": [
24
[
25
"{",
26
"}"
27
],
28
[
29
"[",
30
"]"
31
],
32
[
33
"(",
34
")"
35
],
36
{
37
"open": "'",
38
"close": "'",
39
"notIn": [
40
"string",
41
"comment"
42
]
43
},
44
{
45
"open": "\"",
46
"close": "\"",
47
"notIn": [
48
"string",
49
"comment"
50
]
51
}
52
],
53
"surroundingPairs": [
54
[
55
"{",
56
"}"
57
],
58
[
59
"[",
60
"]"
61
],
62
[
63
"(",
64
")"
65
],
66
[
67
"<",
68
">"
69
],
70
[
71
"'",
72
"'"
73
],
74
[
75
"\"",
76
"\""
77
]
78
],
79
"colorizedBracketPairs": [
80
[
81
"{",
82
"}"
83
],
84
[
85
"[",
86
"]"
87
],
88
[
89
"(",
90
")"
91
],
92
[
93
"<",
94
">"
95
]
96
],
97
"folding": {
98
"markers": {
99
"start": "^\\s*#region\\b",
100
"end": "^\\s*#endregion\\b"
101
}
102
},
103
"onEnterRules": [
104
// Add // when pressing enter from inside line comment
105
// We do not want to match /// (a documentation comment)
106
{
107
"beforeText": {
108
"pattern": "[^\/]\/\/[^\/].*"
109
},
110
"afterText": {
111
"pattern": "^(?!\\s*$).+"
112
},
113
"action": {
114
"indent": "none",
115
"appendText": "// "
116
}
117
},
118
// Add /// when pressing enter from anywhere inside a documentation comment.
119
// Documentation comments are not valid after non-whitespace.
120
{
121
"beforeText": {
122
"pattern": "^\\s*\/\/\/"
123
},
124
"action": {
125
"indent": "none",
126
"appendText": "/// "
127
}
128
},
129
]
130
}
131
132