How to stop VS Code to keep adding standard c++ libraries to the file.associations?

Viewed 860

Each time I go commit the changes in my VS Code project, VS Code has automatically added many standard c++ libraries to the files.associations list inside of workspace.code-workspace.

example changes shown by git

I think I can't simply add the whole file to .gitignore. Is there a way to prevent the file.associations to change every time without losing any functionality?

2 Answers

I've added something like this and it helped me:

"files.associations": {
    "*.h": "c",
    "*.c": "c"
}
Related