Resharper 4.5 破坏了我的配色方案

发布于 2024-07-17 15:18:34 字数 1008 浏览 3 评论 0 原文

我不确定这里到底出了什么问题,但 ReSharper 4.5 RTM 似乎窃取了我的 Visual Studio 颜色主题。 我通常使用 Fredrik Kalseth 的邪恶主题,从那时起我就一直在使用 ReSharper 2.0版本。 以前从未发生过这种情况 - 即使在使用 4.5 Beta 时也没有发生过。 我的方案保持完整,没有有害干扰 - 好吧,实际上 ReSharper 做了正常的突出显示,这实际上是相当值得称赞的! 但这一次,当构建我的新机器时,结果如下所示:

是的我知道ReShaper 颜色可以在“工具”->“字体和颜色”下配置,但首先,我不想这样做,其次,我想了解为什么这种情况只发生在现在,而以前从未发生过。

当我卸载 ReSharper 时,颜色恢复正常。 我尝试删除主题和 resharper 并以不同的顺序重新安装,但无济于事。 我在打开代码文件的情况下应用主题,并看到它们以前的正确颜色短暂闪烁,然后 ReSharper 接管。

我尝试过 Ryan 和 Joel 的 AWESOME 主题生成器,但我看到了相同的结果导入后应用正确颜色的短暂闪烁,然后蹩脚的颜色再次叠加。 我说它们只在黑暗主题的背景下很糟糕,在浅色主题上它们看起来很好。

我只是想知道如何像以前一样吃蛋糕并吃它。 我必须强调,主题和 resharper 在我使用它的整个过程中(至少 6 个月)一直完美地协同工作,这只发生在我的新机器上 - 我的旧机器看起来和工作得很好。 哦 - 我有 ReSharper 的完全许可版本 - 不是试用版。

任何帮助深表感谢。

I'm not sure exactly what went wrong here, but ReSharper 4.5 RTM seems to have stolen my Visual Studio colour theme. I normally use Fredrik Kalseth's wicked theme, and I've been using ReSharper since version 2.0. Never before has this happened - not even while using the 4.5 Beta. My scheme remained intact without detrimental interference - well, actually ReSharper did its normal highlighting which was actually quite complimentary! But this time, when building my new machine, the outcome looks like this:

Dark colours meant for a light theme

Yes I know that ReShaper colours can be configured under Tools->Font and Colors, but firstly, I don't want to have to do that, and secondly, I want to understand why this has happened only now, and never before.

When I uninstall ReSharper, the colours go back to normal. I have tried removing the theme and resharper and reinstalling in different orders to no avail. I apply the theme with a code file open, and see a brief flash of the correct colours how they used to look, and then ReSharper takes over.

I've tried Ryan and Joel's AWESOME theme generator, but I see the same brief flash of the correct colours being applied after importing, and then the crappy colours overlay themselves again. I say they are crappy only in the context of a dark theme, on a light theme they look just fine.

I just want to know how to have my cake and eat it like it's been all this time. I must stress, that the theme and resharper have been working hand in hand perfectly together all the time I've used it (6 months at least), it's only happened on my new machine - my old machine looks and works fine. Oh - and I have a fully licensed version of ReSharper - not a trial.

Any help is much appreciated.

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

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

发布评论

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

评论(2

天涯沦落人 2024-07-24 15:18:34

打开视觉工作室
转到 Resharper > 选项...>> 代码检查> 设置

取消选中“颜色标识符”。
按确定。

Open Visual Studio
Go to Resharper > Options... > Code Inspection > Settings

Untick "Color identifiers".
Press ok.

始于初秋 2024-07-24 15:18:34

尝试进入工具 -> 字体和颜色,不做任何更改,然后单击“确定”。 它为我认识的一些人解决了这样的问题。 我认为它使 VS 重新应用存储的颜色设置。

Try going into Tools -> Fonts and Colors, change nothing and click ok. It's sorted out problems like this for some people I know. I think it makes VS reapply the stored color settings.

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