你可以得到ReSharper的显示在智能感知异常? [英] Can you get ReSharper to display exceptions in Intellisense?

查看:478
本文介绍了你可以得到ReSharper的显示在智能感知异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对ReSharper的提供的覆盖智能感知行为的粉丝。不过,我似乎无法得到它的显示异常(使用 ///<任何东西;异常CREF =SomeExcpetionName/> XML注释)。 ?有谁知道一种方法来启用此功能。

I'm a fan of the overridden Intellisense behaviour provided by ReSharper. However, I can't seem to get it to display exceptions (anything with the /// <exception cref="SomeExcpetionName"/> xml comment). Does anyone know a way to enable this functionality?

注意:这是不相关的不包括从DLL的XML注释文件,因为它正在发生的问题所有类(甚至是核心的.Net的)。此外,任我自己的图书馆,我已确保XML文件在内,没有任何显示在评论的异常。

注2:我已经试过选择Visual Studio的智能感知,而不是ReSharper的智能感知(通过工具>选项>文字编辑器> C#并打开声明完成部分)下自动列表成员参数信息设置。这似乎带回例外(一个Visual Studio重启后)。然而,当我通过选项卡完成弹出智能感知,而不是当我刚弹出提示的方法,通过将鼠标悬停在方法调用它仅适用(这曾经工作......它甚至启动后可以正常使用的前几秒启动Visual Studio中,但随后事情再次将其禁用)

NOTE 2: I have tried selecting Visual Studio Intellisense instead of the ReSharper Intellisense (via Tools > Options > Text Editor > C# and turning on the Auto list members and Parameter information settings under the Statement completion section). This seemed to bring back the exceptions (after a Visual Studio restart). However, it only works when I bring up Intellisense via tab completion and not when I just bring up the tooltip for a method by hovering over the method call (this used to work... it even works properly for the first few seconds after starting up Visual Studio, but then something disables it again).

规格:


  • ReSharper的5.1.3

  • Visual Studio 2008专业

推荐答案

在嗯,这没有什么区别重新安装,我意识到,在%APPDATA%\JetBrains\Resharper\v5.1\vs9.0\UserSettings.xml 文件仍然存在(这也解释了为什么重装没有工作)。然后我做了该文件的差异,在这没有遇到的问题我的小组另一家开发商。我发现这是造成这一问题的设置。

Well after a reinstall that made no difference, I realized that the %appdata%\JetBrains\Resharper\v5.1\vs9.0\UserSettings.xml file was still there (which explains why a reinstall didn't work). I then did a diff on the file with another developer in my group that wasn't having the issue. I found the setting that was causing the issue.

如果您希望(里面的Visual Studio)表明,方法抛出的异常的提示,您必须有下列选项关闭(通过菜单在Visual Studio)

If you wish to have your tooltips (inside of Visual Studio) show the exceptions that a method throws, you must have the following option turned off:


  • 选择的的ReSharper>选项>代码检查>设置>颜色标识

  • 取消选中的选项,如果它被选中(默认禁用)

(在%APPDATA%\JetBrains\Resharper\v5.1\vs9.0\UserSettings.xml ):


  • 找到的<高亮设置> 部分

  • 删除< IdentifierHighlightingEnabled>真< / IdentifierHighlightingEnabled> (你也可以将它设置为False,但是当你通过Visual Studio中取消选中它实际上将其删除)

  • Find the <Highlighting Settings> section.
  • Delete <IdentifierHighlightingEnabled>True</IdentifierHighlightingEnabled> (You could also set it to False, but when you uncheck it via Visual Studio it actually deletes it).

希望这可以节省一些人从同一个头痛的问题。我相信,这其实是因为使用的颜色标识应该无关,与工具提示/智能感知显示可能出现的异常的错误。我会把它报告给JetBrains公司

Hopefully this saves some other people from the same headache. I believe this is actually a bug since using colour identifiers should have nothing to do with tool tips/Intellisense displaying possible exceptions. I'll report it to JetBrains.

更新:
这个问题已经被报告的这里

更新2:
我在谈论这个问题的JetBrains的支持工程师之一,他表示,他们会看到,他们可以做些什么来解决6. ReSharper的问题(没有担保,但他们至少考虑到它)。

UPDATE 2: I was talking about this issue with one of the JetBrains support engineers and he said they'll see what they can do to address the issue in ReSharper 6. (No guarantees, but they are at least considering it).

更新3:结果
有一个的已被最近更新链接的情况下(同样的问题)。此案已被设置为表明,塞的优先级,被提名的被固定的7.0.1版

UPDATE 3:
There is a linked case (same issue) that has been recently updated. The case has been set to a priority of show-stopper and is slated to be fixed for version 7.0.1.

这篇关于你可以得到ReSharper的显示在智能感知异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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