[英]How can I get visual studio text editor background colour?
我希望能够在visual studio中获得文本编辑器背面的rgb颜色,这样我就可以在插件中使用它,因此它与用户设置的主题一致。
This is probably what you are after: IVsFontAndColorStorage interface 这可能就是你所追求的:IVsFontAndColorStorage界面
http://msdn.microsoft.com/en-AU/library/microsoft.visualstudio.shell.interop.ivsfontandcolorstorage.aspx http://msdn.microsoft.com/en-AU/library/microsoft.visualstudio.shell.interop.ivsfontandcolorstorage.aspx
If the user has modified the background font it will be stored here: 如果用户修改了背景字体,它将存储在此处:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\FontAndColors\{58E96763-1D3B-4E05-B6BA-FF7115FD0B7B}\Plain Text Background
If the user has not modified the color, you could key off of the theme they are using based on this registry value: 如果用户未修改颜色,您可以根据此注册表值键入他们正在使用的主题:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General\CurrentTheme
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.