diff --git a/extensions/cpp/package.json b/extensions/cpp/package.json index ce8f3d711a6..169cabff934 100644 --- a/extensions/cpp/package.json +++ b/extensions/cpp/package.json @@ -32,6 +32,14 @@ { "scopeName": "source.c.platform", "path": "./syntaxes/Platform.tmLanguage" + }], + "snippets": [{ + "language": "c", + "path": "./snippets/c.json" + }, + { + "language": "cpp", + "path": "./snippets/cpp.json" }] } } \ No newline at end of file diff --git a/extensions/cpp/snippets/c.json b/extensions/cpp/snippets/c.json new file mode 100644 index 00000000000..d9628dfe42c --- /dev/null +++ b/extensions/cpp/snippets/c.json @@ -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" + } +} diff --git a/extensions/cpp/snippets/cpp.json b/extensions/cpp/snippets/cpp.json new file mode 100644 index 00000000000..d9628dfe42c --- /dev/null +++ b/extensions/cpp/snippets/cpp.json @@ -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" + } +}