I\'m writing a Visual Studio extension in C# that I hope will change the color theme depending on the time of day (After sunset the dark theme will be applied - at sunrise eithe
Here's the simplest way to do it:
Overview:
Details:
To create the two settings files:
To import these files programmatically use DTE.ExecuteCommand with the "/import" parameter like this:
Add a reference to EnvDTE.dll if you don't have it already.
var dte = GetService(typeof(EnvDTE._DTE)) as EnvDTE.DTE;
dte.ExecuteCommand("Tools.ImportandExportSettings", @"/import:""C:\yourpath\LightTheme.vssettings""");
I hope that helps.