Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extending settings.json in VSCode [duplicate]

I'd like to check a version of VSCode's settings.json into our team's git repo while still allowing for individual devs to add their own settings on top of that (i.e. in case they want to configure some extension they're using). Is it possible to tell VSCode to look at two different files? I.e. settings.json and settings-local.json, where settings-local.json is git-ignored.

like image 670
lizlux Avatar asked May 31 '26 13:05

lizlux


1 Answers

Use code --user-data-dir /path/to/user/data/dir to run vscode. VS Code will automatically generate some folders in the selected directory, and settings.json will be located in: SELECTED_DIRECTORY/User/settings.json.

like image 85
amirali Avatar answered Jun 02 '26 12:06

amirali



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!