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

查看:10
本文介绍了在 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.

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

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 中,此彩色智能感知功能来自生产力 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-4a581-9bc6b-4a81-9-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 文件中搜索工具提示".更新 编辑器工具提示 ->纯文本 ->前景要亮,Environment ->工具提示变暗.

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天全站免登陆