如何在 VS 中键入时显示方法的完整文档?
标题非常具有描述性...是否有任何扩展可以让我看到我正在输入的方法的完整文档?我想查看文档,因为我可以在对象浏览器中看到它,其中包含参数的描述和所有内容,而不仅仅是一些“摘要”。
当然可以选择查看所有覆盖。这可能是情报的一部分,或者我不知道这并不重要。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我很遗憾地说,但答案是不。我可以自信地说出这一点,因为我自己花了很多很多时间来寻找这样的东西。祝你好运。
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.
这个想法是,您可以在智能感知工具提示中获得摘要,并且可以按 F1 显示完整帮助,或按 F12 跳转到声明(通常包括文档)。
我发现我通常只需要阅读完整的文档一两次,然后工具提示就会为我提供足够的信息来继续。另外,当我发现自己需要完整的文档时,我通常需要进一步浏览(例如调查整个类和其他方法)。我可以理解您想要查看所有信息,但我必须说我个人更喜欢它原来的样子。
我怀疑,如果你真的得到了你想要的东西,你可能会想在几周后将其关闭(或至少关闭),因为它会不断占据你的整个屏幕,告诉你你已经知道的关于你输入 20 次的方法的信息一天。这可能就是为什么还没有任何工具可以做到这一点。
如果有帮助的话,像 Resharper 这样的工具会提供“更好的”智能感知工具提示。 (我在引号中说“更好”是因为我发现 Resharper 给了我太多的信息,而一次只向我显示一个重载的默认 Visual Studio 方法实际上“在你面前”要少得多。许多人喜欢拥有所有内容不过,这些信息触手可及)。不过,resharper 工具提示仍然无法让您获得文档页面的完整副本。
The idea is that you get a summary in the intellisense tooltip, and can press F1 to show the full help, or F12 to jump to the declaration (which usually includes the documentation).
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.
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.
动态帮助足够接近吗? (
Help > Dynamic Help
或Ctrl+F1, D
)它是一个工具窗口,可将其内容调整为文本编辑器中插入符号下的内容
Would Dynamic Help be close enough? (
Help > Dynamic Help
orCtrl+F1, D
)Its a tool window that adjusts its content to what is under your caret in the text editor
有一个非常有用的扩展,称为 Click Docs,它可以满足您的需求。
There is a very useful extension called Click Docs that will do what you are looking for.