Merge pull request #208291 from microsoft/aiday/addingIndentationForIfForWhile

Indent next line for if/for/while statement followed by whitespace
This commit is contained in:
Aiday Marlen Kyzy
2024-03-22 11:07:52 +01:00
committed by GitHub
3 changed files with 7 additions and 10 deletions

View File

@@ -139,7 +139,7 @@
"pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*\\*([ ]([^\\*]|\\*(?!/))*)?$"
},
"indentNextLinePattern": {
"pattern": "^.*=>\\s*$"
"pattern": "^((.*=>\\s*)|((.*[^\\w]+|\\s*)(if|while|for)\\s*\\(.*\\)\\s*))$"
}
},
"onEnterRules": [