如何更改 VS2k10 为 Intellisense 显示的内容?
事情是这样的;我正在编写一些代码并假设(是的,我的错)返回值将是 Null 对象,而实际上返回的对象永远不会为 null,并且成功/失败位于成员中。
事实证明,该行为记录在我正在使用的函数的 XML Comment 块中,但是,VS2k10 只显示
块
块。
有没有办法调整 VS2k10 以显示
注释?
Here's what happened; I was working on some code and assumed (yes, my bad) that the return value would be a Null object, when in fact the returned object is never null, and the success/failure is in a member.
As it turns out the behavior is documented in the XML Comment block on the function I was using, however, VS2k10 doesn't show the <returns>...</returns>
block, only the <summary>...</summary>
block.
Is there a way to adjust VS2k10 to show the <returns>...
comments as well?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,我们从未在快速信息或参数信息中显示
。您必须在对象浏览器中查看它。另一种替代方法是将插入符号放在要查看
的方法名称上,然后按 F12 (或映射到“转到定义”的任何键)命令,Edit.GoToDefinition
)。这将打开“Metadata As Source”窗口,其中包含所有 XML 文档注释的完整方法签名,包括
。Unfortunately, we never show
<returns>
in Quick Info or Parameter Info. You have to view it in Object Browser.Another alternative is to position the caret on the method name that you want to view
<returns>
for, and hit F12 (or whatever key is mapped to the Go To Definition command,Edit.GoToDefinition
). This will open "Metadata As Source" window, which will contain the full method signature along all XML documentation comments, including<returns>
.