This extension provides a collection of handy C++ code snippets for initializing a C++ program.
- CPP Init: Inserts a basic C++ initialization with
#include<iostream>
,using namespace std;
, and a placeholder for defining a function.
- Install the extension from the Visual Studio Code Marketplace.
- Open a new C++ file or existing C++ file in Visual Studio Code.
- Type the prefix
cppinit
and pressEnter
. - Replace
${1:datatype}
with the desired datatype and${2:functionName}
with the desired function name. - Press
Tab
to navigate through the tab stops and complete your code.
Initial release of C++ Init Snippets extension.
This project is licensed under the MIT License.