Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/json/language-configuration.json
3290 views
1
{
2
"comments": {
3
"lineComment": "//",
4
"blockComment": [
5
"/*",
6
"*/"
7
]
8
},
9
"brackets": [
10
[
11
"{",
12
"}"
13
],
14
[
15
"[",
16
"]"
17
]
18
],
19
"autoClosingPairs": [
20
{
21
"open": "{",
22
"close": "}",
23
"notIn": [
24
"string"
25
]
26
},
27
{
28
"open": "[",
29
"close": "]",
30
"notIn": [
31
"string"
32
]
33
},
34
{
35
"open": "(",
36
"close": ")",
37
"notIn": [
38
"string"
39
]
40
},
41
{
42
"open": "'",
43
"close": "'",
44
"notIn": [
45
"string"
46
]
47
},
48
{
49
"open": "\"",
50
"close": "\"",
51
"notIn": [
52
"string",
53
"comment"
54
]
55
},
56
{
57
"open": "`",
58
"close": "`",
59
"notIn": [
60
"string",
61
"comment"
62
]
63
}
64
],
65
"indentationRules": {
66
"increaseIndentPattern": "({+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"}]*)$)|(\\[+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"\\]]*)$)",
67
"decreaseIndentPattern": "^\\s*[}\\]],?\\s*$"
68
},
69
"onEnterRules": [
70
// Add // when pressing enter from inside line comment
71
{
72
"beforeText": {
73
"pattern": "\/\/.*"
74
},
75
"afterText": {
76
"pattern": "^(?!\\s*$).+"
77
},
78
"action": {
79
"indent": "none",
80
"appendText": "// "
81
}
82
},
83
]
84
}
85
86