I’m working on a visual studio extension and I need to retrieve the current Visual Studio theme Id. In the past (Visual Studio 13), this value was stored in the registry and was easily accessible using:
var key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SoftwareMicrosoftVisualStudio12.0General");
var Id = (string)key.GetValue("CurrentTheme", string.Empty);
This does not work anymore since the theme id is no longer stored in the registry.
Does anyone know how to access the theme id in VS 2022?
New contributor
asylvain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1