I'm using Visual Studio Code and Clang on macOS (non-M1 machine, an old 2012 laptop) to write C++ code, and I've been able to sort out most of the debug/run settings so things compile and run smoothly, except for one thing:
My experience is that the version of Clang that Apple has decided to include in their dev tools defaults to some older C++ standard, so some things (list initialization of variables, for example) won't compile without an explicit "-std=c++17" or similar line in the tasks.json file.
This is fine, except every time I create a new workspace I have to manually add that line into the tasks.json file since it's not there by default. Is there really no way to update the default settings so VS Code puts it in there automatically?
I've updated all the settings I can find to default to C++17 but that doesn't seem to change how the tasks.json file is actually created when I run a new .cpp file for the first time.