Skip to content

Commit 841d897

Browse files
committed
[rust] provide auto indent pattern. Fixes microsoft#51802
1 parent b853eed commit 841d897

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

extensions/rust/language-configuration.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
["\"", "\""],
2222
["'", "'"]
2323
],
24+
"indentationRules": {
25+
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
26+
"decreaseIndentPattern": "^\\s*(\\s*\\/[*].*[*]\\/\\s*)*[})]"
27+
},
2428
"folding": {
2529
"markers": {
2630
"start": "^\\s*//\\s*#?region\\b",

0 commit comments

Comments
 (0)