mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
Add region markers folding for Go
This commit is contained in:
@@ -27,5 +27,12 @@
|
||||
"indentationRules": {
|
||||
"increaseIndentPattern": "^.*(\\bcase\\b.*:|\\bdefault\\b:|(\\b(func|if|else|switch|select|for|struct)\\b.*)?{[^}\"'`]*|\\([^)\"'`]*)$",
|
||||
"decreaseIndentPattern": "^\\s*(\\bcase\\b.*:|\\bdefault\\b:|}[)}]*[),]?|\\)[,]?)$"
|
||||
},
|
||||
"folding": {
|
||||
"offSide": false,
|
||||
"markers": {
|
||||
"start": "^//\\s?Region\\b",
|
||||
"end": "^//\\s?EndRegion\\b"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user