Now, for using VS Code in my Mac M1, I have to basically have to keep a .vscode folder in every directory where I run my code on. Which contains the c_cpp_properties.json
, tasks.json
, and settings.json
files. Is there any way to make sure that every C++ file in my Laptop follows a specific configuration if there are no local configuration files overwriting them? Even a solution which inculcates this behaviour in subdirectories is also fine.
Asked
Active
Viewed 73 times
0

starball
- 20,030
- 7
- 43
- 238

Vedanta Mohapatra
- 451
- 2
- 16
1 Answers
1
For the c_cpp_properties.json
, I'm pretty sure there's no such thing as a global version of that file. But if all you want is a default configuration and not to actually get the configurations defined in a "global c_cpp_properties.json
file", you can just use the C_Cpp.default.*
settings in your user settings.json file.
For launch.json, see How can I create default/global launch configurations for VS Code?. TL;DR use the "launch"
property of your user settings.json.
For tasks.json, see How can I set a default tasks.json file for Visual Studio Code?. TL;DR there's no such thing at the time of this writing.

starball
- 20,030
- 7
- 43
- 238
-
Thanks a bunch. The C_Cpp.default advice solved my issue. – Vedanta Mohapatra May 23 '23 at 06:25