I use VS Code for compiling and running C++ code. But I want that whenever I create new cpp file, it already has this written
#include <bits/stdc++.h>
using namespace std;
#define ll long long
void solve (){
// CODE HERE
}
int main () {
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
solve();
return 0;
}
Everytime I need to copy paste this code in new cpp file, is there any way so that it is already written when I create cpp files?