mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
Add region markers folding for Go
This commit is contained in:
parent
e6bc6699a4
commit
66019c79ff
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue