How to get vs theme programmatically in vsix

Abi Shake 1 Reputation point
2022-06-21T13:45:53.837+00:00

I need to get a current theme programmatically from visual studio in vsix by dte or any other way

Is any solution?

Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2022-06-21T14:48:53.367+00:00

    I've never looked but I believe the theme is stored in the Settings store along with all the other settings that are configurable. You can use ShellSettingsManager to search for the theme most likely. Here's a really old post on how it used to work but themes have gotten attention since then so it might not work in VS 2019/2022.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.