This is an offshoot of the question found here.
I want to create a new (python) file, and everytime I do so, I want vscode to write to the file the def main if name main idiom:
def main():
pass
if __name__ == "__main__":
pass
Is there a json file I can write to? More broadly, can I do this for any file I create like having
#include <iostream>
int main()
{
}
for c++ be written for me when I create a new c++ file?

