2015-11-13 21:39:38 +08:00
|
|
|
{
|
|
|
|
"comments": {
|
|
|
|
"lineComment": "//",
|
2024-12-06 18:51:50 +08:00
|
|
|
"blockComment": [
|
|
|
|
"/*",
|
|
|
|
"*/"
|
|
|
|
]
|
2015-11-13 21:39:38 +08:00
|
|
|
},
|
|
|
|
"brackets": [
|
2024-12-06 18:51:50 +08:00
|
|
|
[
|
|
|
|
"{",
|
|
|
|
"}"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"[",
|
|
|
|
"]"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"(",
|
|
|
|
")"
|
|
|
|
]
|
2016-04-22 04:56:50 +08:00
|
|
|
],
|
|
|
|
"autoClosingPairs": [
|
2024-12-06 18:51:50 +08:00
|
|
|
[
|
|
|
|
"{",
|
|
|
|
"}"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"[",
|
|
|
|
"]"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"(",
|
|
|
|
")"
|
|
|
|
],
|
|
|
|
{
|
|
|
|
"open": "\"",
|
|
|
|
"close": "\"",
|
|
|
|
"notIn": [
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
}
|
2016-04-22 04:56:50 +08:00
|
|
|
],
|
|
|
|
"surroundingPairs": [
|
2024-12-06 18:51:50 +08:00
|
|
|
[
|
|
|
|
"{",
|
|
|
|
"}"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"[",
|
|
|
|
"]"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"(",
|
|
|
|
")"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"\"",
|
|
|
|
"\""
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"<",
|
|
|
|
">"
|
|
|
|
]
|
2018-08-23 16:43:49 +08:00
|
|
|
],
|
2019-10-09 23:04:11 +08:00
|
|
|
"indentationRules": {
|
|
|
|
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
|
|
|
|
"decreaseIndentPattern": "^\\s*(\\s*\\/[*].*[*]\\/\\s*)*[})]"
|
|
|
|
},
|
2018-08-23 16:43:49 +08:00
|
|
|
"folding": {
|
|
|
|
"markers": {
|
2018-08-28 22:49:34 +08:00
|
|
|
"start": "^\\s*//\\s*#?region\\b",
|
|
|
|
"end": "^\\s*//\\s*#?endregion\\b"
|
2018-08-23 16:43:49 +08:00
|
|
|
}
|
2024-12-06 18:51:50 +08:00
|
|
|
},
|
|
|
|
"onEnterRules": [
|
|
|
|
// Add // when pressing enter from inside line comment
|
|
|
|
{
|
|
|
|
"beforeText": {
|
2024-12-10 23:49:07 +08:00
|
|
|
"pattern": "\/\/.*"
|
2024-12-06 18:51:50 +08:00
|
|
|
},
|
|
|
|
"afterText": {
|
|
|
|
"pattern": "^(?!\\s*$).+"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"indent": "none",
|
|
|
|
"appendText": "// "
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
2016-05-15 12:03:47 +08:00
|
|
|
}
|