如何在代码中更改(局部变量“...”从未使用过)的前景文本颜色

发布于 2025-01-06 06:00:48 字数 104 浏览 2 评论 0原文

我找不到在任何地方更改它的方法,CodeRush 将前景色设置为非常浅的灰色,在我的显示器的白色背景上几乎无法读取。当变量名(以及未使用的方法参数和 using 指令)如此简单时,很难阅读代码。

I can't find a way to change that anywhere and CodeRush sets the foreground color to a very light gray that is nearly unreadable on my monitor's white background. It is hard to read the code when variable names (as well as unused method parameters and using directives) are this light.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

第七度阳光i 2025-01-13 06:00:48

Visual Studio 配置对话框中提供了各种选项,例如不同代码问题类型的颜色下划线。从主 IDE 窗口中,转到“工具”|“选项...,然后是环境 |字体和颜色。在“显示项目:”列表中,您可以找到死代码项目。对于该项目,您可以更改“项目前景”和“项目背景”颜色属性。

请在此处查看更多详细信息:CodeRush 代码问题配置和选项

The options, such as colors of the different code issue types underlining, are available inside the Visual Studio configuration dialog. From the main IDE window, go to Tools | Options…, then Environment | Fonts and Colors. In the “Display items:” list, you can find the Dead Code item. For this item, you can change the “Item foreground” and “Item background” color properties.

See more details here: CodeRush Code Issues configuration and options

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文