diff --git a/share/qtcreator/snippets/cpp.xml b/share/qtcreator/snippets/cpp.xml index 11f9241327b..5ade1dc1c8b 100644 --- a/share/qtcreator/snippets/cpp.xml +++ b/share/qtcreator/snippets/cpp.xml @@ -43,6 +43,9 @@ public: for (int $var$ = 0; $var$ < $total$; ++$var$) { $$ } +for ($var$ : $container$) { + $$ +} foreach ($var$, $container$) { $$ }