[fsharp] add folding region markers and snippets

This commit is contained in:
Martin Aeschlimann 2017-09-25 23:25:05 +02:00
parent 595010f896
commit ab4cc0d187
3 changed files with 25 additions and 1 deletions

View file

@ -22,6 +22,10 @@
["'", "'"]
],
"folding": {
"offSide": true
"offSide": true,
"markers": {
"start": "^\\s*//#region",
"end": "^\\s*//#endregion"
}
}
}

View file

@ -17,6 +17,10 @@
"language": "fsharp",
"scopeName": "source.fsharp",
"path": "./syntaxes/fsharp.json"
}],
"snippets": [{
"language": "fsharp",
"path": "./snippets/fsharp.json"
}]
}
}

View file

@ -0,0 +1,16 @@
{
"Region Start": {
"prefix": "#region",
"body": [
"//#region $0"
],
"description": "Folding Region Start"
},
"Region End": {
"prefix": "#endregion",
"body": [
"//#endregion"
],
"description": "Folding Region End"
}
}