Is there a way to import/export Visual Studio settings via a Visual Studio Extension, i.e., via the Visual Studio API?
I want to export some specific settings to a local file, just like the VS Import and Export Settings Wizard does, however, without UI interaction of course.
You could probably also use Roslyn:
I haven't tried it, but the api suggests that you can indeed change global options via roslyn.
There is a Visual Studio Command named Tools.ImportandExportSettings
You can execute the Command with DTE2.ExecuteCommand
Import/Export example: