visual-studio 如何在 VS 中键入时显示方法的完整文档?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2877647/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to display full documentation of a method as you type in VS?
提问by Rasto
The title is pretty descriptive... Is there any extension that let me see FULL documentation of the method I'm typing ? I would like to see the documentation as I can see it in Object Browser with description of parameters and everything not just some "summary".
标题非常具有描述性......是否有任何扩展可以让我看到我正在输入的方法的完整文档?我想查看文档,因为我可以在对象浏览器中看到它,其中包含参数描述以及所有内容,而不仅仅是一些“摘要”。
Of cause with an option to see all overrides. It may be part of intelisence or I don't know what it does not really matter.
当然可以选择查看所有覆盖。它可能是智能的一部分,或者我不知道它真正重要的是什么。
采纳答案by Adam S
I'm sorry to say, but the answer is no. I can say this with confidence because I myself spent many, many hours looking for such a thing. Good luck.
我很抱歉地说,但答案是否定的。我可以自信地说这句话,因为我自己花了很多很多小时来寻找这样的东西。祝你好运。
回答by Jason Williams
The idea is that you get a summaryin the intellisense tooltip, and can press F1 to show the full help, or F12 to jump to the declaration (which usually includes the documentation).
这个想法是你在智能感知工具提示中得到一个摘要,可以按 F1 显示完整的帮助,或按 F12 跳转到声明(通常包括文档)。
I find I usually only need to read the full documentation once or twice and then the tooltips give me enough information to go on. Also, when I find myself needing the full documentation, I usually need to browse further (e.g. investigate the whole class and other methods). I can understand you wanting to see all the information, although I must say I personally prefer it the way it is.
我发现我通常只需要阅读完整的文档一两次,然后工具提示会给我足够的信息来继续。此外,当我发现自己需要完整的文档时,我通常需要进一步浏览(例如调查整个类和其他方法)。我可以理解您想要查看所有信息,尽管我必须说我个人更喜欢它的样子。
I suspect if you actually had what you're asking for you might want to turn it off (or at least down) after a few weeks when it keeps taking over your whole screen to tell you stuff you already know about methods you type 20 times a day. That's probably why there aren't any tools out there to do it already.
我怀疑如果你真的有你想要的东西,你可能想在几周后关闭(或至少关闭)它不断接管你的整个屏幕,告诉你你已经知道的关于你输入的方法的内容 20 次一天。这可能就是为什么没有任何工具可以做到这一点的原因。
If it helps, tools like Resharper give "better" intellisense tooltips. (I say "better" in quotes because I find Resharper gives me too much information, and the default Visual Studio approach of just showing me one overload at a time is actually a lot less 'in your face'. Many people like to have all this information at their fingertips though). The resharper tooltips still won't get you to a full copy of the documentation page though.
如果有帮助,像 Resharper 这样的工具会提供“更好的”智能感知工具提示。(我用引号说“更好”是因为我发现 Resharper 给了我太多信息,而一次只向我显示一个重载的默认 Visual Studio 方法实际上“在你面前”少得多。许多人喜欢拥有所有这些信息触手可及)。不过,resharper 工具提示仍然无法让您获得文档页面的完整副本。
回答by Pondidum
Would Dynamic Helpbe close enough? (Help > Dynamic Helpor Ctrl+F1, D)
将动态帮助接近就够了吗?(Help > Dynamic Help或Ctrl+F1, D)
Its a tool window that adjusts its content to what is under your caret in the text editor
它是一个工具窗口,可将其内容调整为文本编辑器中插入符号下的内容

