mirror of
https://github.com/Microsoft/vscode
synced 2024-08-26 20:39:37 +00:00
Add to C/C++
This commit is contained in:
parent
e3cab63a12
commit
a99fb2c5c3
|
@ -30,5 +30,16 @@
|
|||
"start": "^\\s*#pragma\\s+region\\b",
|
||||
"end": "^\\s*#pragma\\s+endregion\\b"
|
||||
}
|
||||
},
|
||||
"onEnterRules": [
|
||||
{
|
||||
// Decrease indentation after single line if/else if/else, for, or while
|
||||
"previousLineText": "^\\s*(((else ?)?if|for|while)\\s*\\(.*\\)\\s*|else\\s*)$",
|
||||
// But make sure line doesn't have braces or is not another if statement
|
||||
"beforeText": "^\\s+([^{i\\s]|i(?!f\\b))",
|
||||
"action": {
|
||||
"indent": "outdent"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue