Set default text when creating new project

Is it possible to set a default code everytime I’m creating a .cpp file? I do competitive programming and speed is pretty important so it would be nice if there was a main function already created when I create a new file.

Use a snippet block for your code template?

Yes, basically I want every C++ project to start with #include <bits/stdc++.h>; using namespace std; and have a main function.

As I tried to explain … just write your entire template as a snippet and thus write the snippet/template into your blank file.

Thanks! I didn’t know anything about snippets! It helped a lot!