Visual Studio Helper - 列出源文件的所有子/函数的窗口 [英] Visual Studio Helper - Window which lists all subs / functions of the sourcefile

查看:303
本文介绍了Visual Studio Helper - 列出源文件的所有子/函数的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



i我正在搜索加载项/可视演播室功能,它将为当前源文件登记所有函数/子/属性等。



在广泛的插件中有类似的东西可以授予我这个功能吗?



来自德国的问候: - )

Hi there,

i am searching for an add-in / visual studio functionality, that will enlist all functions/subs/properties etc. for the current source file.

is there anything like that in the wide range of add-ins that will grant me this functionality?

Greetings from Germany :-)

推荐答案

这是我对它的想法:我无法对Visual Studio扩展进行成像,这会像一个那样冗余和烦人你建议有。



首先,它与当今编程中主导的原则相矛盾。当您标记VB.NET时,它建议您进行.NET开发。您可以理解该文件不起编程模块的作用,但是程序集可以。不仅文件在代码中没有任何声音单元,没有其他文件,文件的内容实际上也没有意义。例如,请记住部分类声明,其中不同的部分可以(通常是)放在不同的文件中。而且,毕竟,如果你在一个窗口中加载了一个文件,你当然可以看到其中有什么,如果你使用合理可读的编码风格,当然。



你实际上有更好的选择。查看上下文菜单项 G o定义,甚至查找 A ll参考。他们真的没用吗?



最后,让我们来看看大会。列出程序集的所有声明的最终方法(同样,这不适用于源代码文件)是 Reflection 。要查看它的外观,编译一些程序集并在某个项目中通过其可执行模块(通常是* .EXE或* .DLL)引用它就足够了,是的,您也可以引用* .EXE,这些只是文件命名通过使用添加引用窗口的浏览选项卡,这无关紧要)。您可以单击解决方案资源管理器中的引用节点。它将在代码窗口中加载反射的程序集,您可以在其中浏览所有声明,查看每个项目的文档,所有相关信息。



-SA
Here is my idea about it: I cannot imaging the Visual Studio extension which would be as redundant and annoying as the one you suggest to have.

First of all, it contradicts the principles dominated in present-day programming. As you tagged "VB.NET", it suggests you do .NET development. You could be able to understand that the file does not play the role of the programming module, but the assembly does. Not only the file does not present any sound unit in the code, the content of the file might actually make no sense without some other files. For example, remember such thing as the partial class declaration, where different parts can be (and usually are) placed in different files. And, after all, if you have a file loaded in a window, you already can see what''s in it, if you use reasonably readable style of coding, of course.

You actually have much better options. Look at the context menu items "Go To Definition" and even "Find All References". Aren''t they are really useful?

And finally, let''s look at the assembly. The ultimate way of listing all declarations of an assembly (again, this is not really applicable to a source code file) is Reflection. To see how it looks it''s enough to compile some assembly and reference it in some project by its executable module (usually *.EXE or *.DLL; yes, you can reference *.EXE as well, those are just file naming which does not matter) by using the "Browse" tab of the "Add Reference" window. You can click on the reference node in Solution explorer. It will load the reflected assembly in the code window, where you can browse all the declarations, see the documentation on each item, all the relevant information.

—SA


据我所知,Extensions网站中没有这样的怪物。
No such monster in the Extensions site as far as I can tell.


这篇关于Visual Studio Helper - 列出源文件的所有子/函数的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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