From d88a8c34b4c9fab961af22c72d24d637ef3da9f2 Mon Sep 17 00:00:00 2001 From: Tomasz Wisniewski Date: Mon, 9 Nov 2015 15:35:08 +0000 Subject: [PATCH 1/2] Add cpp specific include snippet The standard inclusion template has been changed from "stdio.h" to iostream. In case of C++, the user most likely will work with STL containers/headers which by default don't require the ".h" extension. --- snippets/cpp.snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index 632f76f..6185ed9 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -1,5 +1,11 @@ extends c +## +## Preprocessor +# #include <...> +snippet inc + #include <${1:iostream}> +## ## STL Collections # std::array snippet array From 4b26cb7df63ba21e3c0b9c369d9107d9c5511379 Mon Sep 17 00:00:00 2001 From: Tomasz Wisniewski Date: Mon, 9 Nov 2015 15:39:38 +0000 Subject: [PATCH 2/2] Add boost include snippet Boost headers have a ".hpp" extension and are contained within the boost directory. This commit adds a "binc" snippet - a dedicated snippet to include boost headers. --- snippets/cpp.snippets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index 6185ed9..ca9fbe3 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -5,6 +5,8 @@ extends c # #include <...> snippet inc #include <${1:iostream}> +snippet binc + #include ## ## STL Collections # std::array