Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/go/language-configuration.json
3291 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
]
42
},
43
{
44
"open": "\"",
45
"close": "\"",
46
"notIn": [
47
"string"
48
]
49
},
50
{
51
"open": "'",
52
"close": "'",
53
"notIn": [
54
"string",
55
"comment"
56
]
57
}
58
],
59
"surroundingPairs": [
60
[
61
"{",
62
"}"
63
],
64
[
65
"[",
66
"]"
67
],
68
[
69
"(",
70
")"
71
],
72
[
73
"\"",
74
"\""
75
],
76
[
77
"'",
78
"'"
79
],
80
[
81
"`",
82
"`"
83
]
84
],
85
"indentationRules": {
86
"increaseIndentPattern": "^.*(\\bcase\\b.*:|\\bdefault\\b:|(\\b(func|if|else|switch|select|for|struct)\\b.*)?{[^}\"'`]*|\\([^)\"'`]*)$",
87
"decreaseIndentPattern": "^\\s*(\\bcase\\b.*:|\\bdefault\\b:|}[)}]*[),]?|\\)[,]?)$"
88
},
89
"folding": {
90
"markers": {
91
"start": "^\\s*//\\s*#?region\\b",
92
"end": "^\\s*//\\s*#?endregion\\b"
93
}
94
},
95
"onEnterRules": [
96
// Add // when pressing enter from inside line comment
97
{
98
"beforeText": {
99
"pattern": "\/\/.*"
100
},
101
"afterText": {
102
"pattern": "^(?!\\s*$).+"
103
},
104
"action": {
105
"indent": "none",
106
"appendText": "// "
107
}
108
},
109
]
110
}
111
112