How to define classification formats for each theme

北战南征 提交于 2019-12-05 07:00:51
Xcalibur

The best approach I have found to support multiple colour schemes (themes) is to hook into the ThemeChanged event and then update your classification types accordingly. Where possible I update my custom colours from predefined VS formats that are similar to my custom formats (e.g. use the standard VS Keyword colours to set the defaults on my custom keyword format), since I know these colours will likely be maintained by any custom themes the user has applied.

The Visual F# Power Tools use this approach, which I discovered from this answer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!