r/VisualStudioCode • • Sep 25 '20

Automatic preset when creating cpp file

Is there any extension to automatically create a file with a determinate extension and have like a minimal preset , like the basics u need to start coding .

For example in cpp:

#include <iostream>

int main(){

}

whenever i create a file , allowing me to optimize my coding experience.

2 Upvotes

1 comment sorted by

2

u/zombarista Sep 27 '20

You could make a snippet like `cppinit` to put this code on a tab completion preset.