Auto Indent Support not working for select in Go #77379
Labels
editor-autoindent
Editor auto indentation issues
under-discussion
Issue is under discussion for relevance, priority, approach
Auto indent moves case statements to the same level as the select when saving. Example:
Running VSCode v 1.36.1
The language-configuration.json file for go shows:
...
"indentationRules": { "increaseIndentPattern": "^.*(\\bcase\\b.*:|\\bdefault\\b:|(\\b(func|if|else|switch|select|for|struct)\\b.*)?{[^}\"'
]*|\([^)"']*)$", "decreaseIndentPattern": "^\\s*(\\bcase\\b.*:|\\bdefault\\b:|}[)}]*[),]?|\\)[,]?)$" },
...
The text was updated successfully, but these errors were encountered: