在Visual Studio 2015中覆盖Intellisense颜色 [英] Overriding Intellisense colors in Visual Studio 2015

查看:105
本文介绍了在Visual Studio 2015中覆盖Intellisense颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Light主题与自定义文本编辑器颜色一起使用.在Visual Studio 2015中,我的Intellisense和其他灯泡/悬停/弹出窗口均具有与文本编辑器设置匹配的代码颜色.

I'm using the Light theme with custom Text Editor colors. In Visual Studio 2015, my Intellisense and the other lightbulb/hover/popups all have code colors to match the Text Editor settings.

这听起来不错,但浅色"主题具有非常浅的灰色背景,对于编辑器中的纯文本",我更喜欢白色前景色.它最终像这样:

That sounds nice, but the Light theme has a very light gray background, and I prefer a white foreground color for Plain Text in the editor. It ends up like this:

根据我到目前为止的调查...

From my investigation so far...

在Visual Studio的早期版本中,此彩色的Intellisense功能来自Productivity Power Tools加载项.可以将其关闭.没有安装.现在它已内置到Visual Studio中,我找不到关闭它的地方.

In previous versions of Visual Studio, this colorized Intellisense feature came from a Productivity Power Tools add-in. It could be turned off. That's not installed. It's built into Visual Studio now, and I couldn't find a place to turn it off.

我真的不想弄乱主题编辑器.我只想要黑色文本Intellisense,或者至少在弹出窗口中将白色文本变成黑色.其他人则说它不适用于Intellisense,但我不确定.

I really don't want to mess with the theme editor. I just want black text Intellisense, or to at least turn the white text to black in the popups. Others have said it doesn't work with Intellisense, but I'm not sure.

我将工具">选项">环境">字体和颜色">编辑器工具提示">纯文本"前景色设置为黑色.这就是代码下的单词为黑色的原因.但这并不影响代码引用本身.

I have set Tools > Options > Environment > Fonts and Colors > Editor Tooltip > Plain Text foreground color to black. That's why the words under the code are black. But that doesn't affect the code reference itself.

推荐答案

我遇到了同样的问题,因为我使用深蓝色背景和浅色文本.

I have this same issue, as I use a dark blue background with light text.

我所做的就是使用此附加组件:

What I did was use this add-on:

https://visualstudiogallery.msdn.microsoft.com/6f4b51b6-5c6b-4a81-9cb5 -f2daa560430b

然后复制您当前正在使用的主题,但不要切换到该主题(如果要保留当前的字体/颜色设置).

Then copy the theme you are currently using, but do not switch to it yet (if you want to keep your current font / color settings).

然后,我导出了字体和颜色"设置,打开了生成的文件,并完全删除了主题" XML元素.

I then exported my "Font and Color" settings, opened the generated file, and removed the "Theme" XML element completely.

然后,您可以切换到新复制的主题,然后从刚刚使用导入和导出设置"创建的文件中重新导入颜色设置.

You can then switch to the new copied theme and re-import your color settings from the file just created using "Import and Export Settings".

然后转到工具">自定义颜色"下的主题编辑器加载项.编辑您的主题.选择显示所有元素"选项,然后在* .theme文件中搜索"tooltip".将Editor Tooltip -> Plain Text -> Foreground设置为亮,将Environment -> ToolTip设置为暗.

Then go to the theme editor add-on under Tools > Customize Colors. Edit your theme. Select the "Show All Elements" option and search for "tooltip" in the *.theme file. Update the Editor Tooltip -> Plain Text -> Foreground to be bright, and the Environment -> ToolTip to be dark.

这不是一个完美的解决方案,但是直到他们修复它才可用.

It isn't a perfect solution, but it is usable until they fix it.

这篇关于在Visual Studio 2015中覆盖Intellisense颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆