mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
[folding] c & cpp snippets for folding region markers
This commit is contained in:
@@ -32,6 +32,14 @@
|
|||||||
{
|
{
|
||||||
"scopeName": "source.c.platform",
|
"scopeName": "source.c.platform",
|
||||||
"path": "./syntaxes/Platform.tmLanguage"
|
"path": "./syntaxes/Platform.tmLanguage"
|
||||||
|
}],
|
||||||
|
"snippets": [{
|
||||||
|
"language": "c",
|
||||||
|
"path": "./snippets/c.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": "cpp",
|
||||||
|
"path": "./snippets/cpp.json"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
16
extensions/cpp/snippets/c.json
Normal file
16
extensions/cpp/snippets/c.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"Region Start": {
|
||||||
|
"prefix": "#region",
|
||||||
|
"body": [
|
||||||
|
"#pragma region $0"
|
||||||
|
],
|
||||||
|
"description": "Folding Region Start"
|
||||||
|
},
|
||||||
|
"Region End": {
|
||||||
|
"prefix": "#endregion",
|
||||||
|
"body": [
|
||||||
|
"#pragma endregion"
|
||||||
|
],
|
||||||
|
"description": "Folding Region End"
|
||||||
|
}
|
||||||
|
}
|
||||||
16
extensions/cpp/snippets/cpp.json
Normal file
16
extensions/cpp/snippets/cpp.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"Region Start": {
|
||||||
|
"prefix": "#region",
|
||||||
|
"body": [
|
||||||
|
"#pragma region $0"
|
||||||
|
],
|
||||||
|
"description": "Folding Region Start"
|
||||||
|
},
|
||||||
|
"Region End": {
|
||||||
|
"prefix": "#endregion",
|
||||||
|
"body": [
|
||||||
|
"#pragma endregion"
|
||||||
|
],
|
||||||
|
"description": "Folding Region End"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user