aboutsummaryrefslogtreecommitdiff
path: root/my_snippets
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-06-18 00:17:30 +0800
committerjdhao <jdhao@hotmail.com>2021-06-18 00:23:18 +0800
commitb0af2ed2217c48e83b8fe05482f290cbd07cfe2d (patch)
treeec5f2449ae3fe76f1173be6aed33e27b1b500cd5 /my_snippets
parent35d878eeaf6c0d5cae610bcec75296dee58c5acf (diff)
Add cpp snippets
Diffstat (limited to 'my_snippets')
-rw-r--r--my_snippets/cpp.snippets21
1 files changed, 21 insertions, 0 deletions
diff --git a/my_snippets/cpp.snippets b/my_snippets/cpp.snippets
new file mode 100644
index 0000000..f846244
--- /dev/null
+++ b/my_snippets/cpp.snippets
@@ -0,0 +1,21 @@
+snippet bare "barebone code template"
+#include <iostream>
+#include <vector>
+#include <string>
+
+using std::cout;
+using std::endl;
+using std::vector;
+using std::string;
+
+
+int main()
+{
+
+}
+endsnippet
+
+snippet icd "#include directive" b
+#include <$1>
+$0
+endsnippet