This extension allows to automatically update Visual Studio settings for each solution.
It's a common situation when code styles for company projects can be different from personal and open source projects code styles. Settings Guard will switch Visual Studio settings depending on loaded project.
How it works:
Edit Visual Studio settings.
Export required part of the settings (or all settings) to file using "Tools > Import/Export" menu.
IMPORTANT: Settings file name must include Visual Studio version before extensions. E.g.
my-settings**.vs2022.vssettings**
my-settings**.vs2019.vssettings**
This allows to avoid loading Visual Studio 2022 settings into Visual Studio 2019 and vice versa.
Copy settings file into a solution root. Alternatively, you can copy setting file into any parent folder. In this case settings will be applied to solutions in all subfolders below it.
Repeat steps above for any other solution which requires different settings.
As result each solution will have own set of settings (own .vssettings file).
If these is no settings file in the solution root folder then Settings Guard will check parent folders up to the drive root. This allows to provide settings for multiple solutions using single file.