vscode/extensions/rust/language-configuration.json

92 lines
1.0 KiB
JSON
Raw Permalink Normal View History

2015-11-13 21:39:38 +08:00
{
"comments": {
"lineComment": "//",
"blockComment": [
"/*",
"*/"
]
2015-11-13 21:39:38 +08:00
},
"brackets": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
]
2016-04-22 04:56:50 +08:00
],
"autoClosingPairs": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
{
"open": "\"",
"close": "\"",
"notIn": [
"string"
]
}
2016-04-22 04:56:50 +08:00
],
"surroundingPairs": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
],
[
"<",
">"
]
2018-08-23 16:43:49 +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
}
},
"onEnterRules": [
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
},
"action": {
"indent": "none",
"appendText": "// "
}
},
]
}