锐锐器 5 与 6

发布于 2024-11-27 20:10:53 字数 194 浏览 2 评论 0原文

当我使用 ReSharper 5 时,我的文件会有各种语法突出显示,并且右侧滚动条旁边有一个栏。它非常棒,因为它会突出显示多余的导入和可能的代码异味,并在滚动条旁边的栏中标记内容。

有了 ReSharper 6,我就没有这些了。我实际上必须将光标放在要更改的内容上,然后等待铅笔或灯泡出现。这是 ReSharper 6 默认情况下的情况还是我必须重新安装它?

Back when I had ReSharper 5 my files would have all kinds of syntax highlighting and a bar next to the scrollbar to the right. It was wonderful because it would highlight redundant imports and possible code smells, as well mark things in the bar next to the scroll bar.

With ReSharper 6 I don't have any of that. I have to actually have cursor on what I want to change and wait for the pencil or light bulb to show up. Is this how ReSharper 6 is by default or do I have to reinstall it?

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

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

发布评论

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

评论(2

素手挽清风 2024-12-04 20:10:53

首先确保 ReSharper 已实际激活。如果是,则 Visual Studio 顶部应该有一个 ReSharper 顶级菜单条目。

如果是,请确保在 ReSharper 设置中打开“启用代码分析”。

如果不是,请在 Visual Studio 设置(“工具”->“选项”)中启用 ReSharper。左侧列表中应该有一个额外的条目“ReSharper”。单击“继续”按钮。

如果您的 Visual Studio 设置中没有此类条目,则表示 ReSharper 未安装或未正确安装。

First make sure ReSharper is acutally activated. If it is, there should be a ReSharper top level menu entry in Visual Studio at the top.

If it is, make sure "Enable Code Analysis" is turned on in the ReSharper settings.

If it is not, enable ReSharper in the Visual Studio settings (Tools->Options). There should be an extra entry "ReSharper" in the list on the left side. Click the "Resume" button.

If you don't have such an entry in your Visual Studio settings, ReSharper is either not or not correctly installed.

翻了热茶 2024-12-04 20:10:53

也许设置没有从版本 5 文件夹转移到版本 6 文件夹。请尝试以下操作:

  • 确保关闭 Visual Studio。

  • 转到:

注意:此文件夹来自 Windows 7 计算机,因为您没有提供有关您正在使用的 Visual Studio 版本的信息将 'x'

"c:\Users*your user*\AppData\Roaming\JetBrains\ReSharper\v5.x\vsxx.x"

放在其中,您会发现一个 UserSettings.xml 文件,打开它进行编辑。

  • 查找“SeverityTable”节点。选择它并复制它。

  • 将其粘贴到“c:\Users*your user*\AppData\Roaming\JetBrains\Resharper\v6.0\vsxx.x”文件夹中的同一文件上。我建议在执行此操作之前先备份该文件。

  • 重新打开视觉工作室。 Resharper 应该会像更新之前一样指示所有建议和气味。

希望这有帮助。

Maybe the settings were not taken from the version 5 folder to the version 6 one. Try the following:

  • Make sure you close Visual Studio.

  • Go to:

Note: this folder is from a Windows 7 machine, since you didn't provide information on which version of visual studio you are using I'm putting 'x'

"c:\Users*your user*\AppData\Roaming\JetBrains\ReSharper\v5.x\vsxx.x"

In there you'll find a UserSettings.xml file open it for edit.

  • Look for the "SeverityTable" node. Select it and copy it.

  • Paste it on the same file that you'll find on the "c:\Users*your user*\AppData\Roaming\JetBrains\Resharper\v6.0\vsxx.x" folder. I recommend making a backup of the file before doing that.

  • Reopen visual studio. Resharper should be indicating all the recommendations and smells as it did before you updated it.

Hope this helps.

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