{
// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "cpp boilerplate",
"body": [
"#include<bits/stdc++.h>",
"#define rep(i,a,b) for(int i=a;i<b;i++)",
"#define rrep(i,a,b) for(int i=a;i>=b;i--)",
"#define ll long long",
"#define take(n) ll int n;cin>>n",
"#define mod 1000000007",
"#define mp(a,b) make_pair(a,b)",
"#define pb(a) push_back(a)",
"#define pp pop_back()",
"#define array(n,name) ll int *name=new ll int[n]",
"#define Zubin ios::sync_with_stdio(false);",
"#define Shah cin.tie(NULL);cout.tie(0);",
"using namespace std;\n",
"int main(){\n",
"\tZubin Shah\n",
"\tint N;",
"\tcin>>N;",
"\twhile(N--){",
"\t\t$1",
"\t}\n",
"return 0;",
"}",
],
"description": "Log output to console",
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter