管理VS2017社区解决方案资源管理器TreeNodes [英] Managing VS2017 Community Solution Explorer TreeNodes

查看:72
本文介绍了管理VS2017社区解决方案资源管理器TreeNodes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在解决方案资源管理器中"合并"文件,以便我可以在相应的.vb文件下显示文本文件(例如SE如何扩展以包含.Designer.vb作为子项节点?)

Is there a way to 'merge' files in Solution Explorer so that I could show a text file under the corresponding .vb file (such as how SE used to expand to include the .Designer.vb as a child node?)

我问的原因是因为我打算发布一个组件库,并希望"附加"一个ReadMe.txt文件以及我可能编写的任何其他相关外部文件作为每个相应的.vb文件下的节点。这将使整个
的所有部分保持在单个父节点下并清理SE GUI。也许这可以通过XML在某处完成?

The reason I ask is because I am planning to publish a component library and would like to 'attach' a ReadMe.txt file and any additional related external files that I might code as nodes under each respective .vb file. This would keep all parts of the whole under individual parent nodes and clean up the SE GUI. Perhaps this could be accomplished via XML somewhere?

我目前正在使用VS2017社区版15.9.4。

I am currently using VS2017 Community Version 15.9.4.

(顺便说一下:有没有可以在哪里设置开关,这会导致解决方案资源管理器显示.Designer.vb节点扩展,因为它用于显示?)

(As an aside: is there a switch that can be set somewhere that would cause the Solution Explorer to show the .Designer.vb node expansion as it used to display?)

谢谢!

推荐答案

嗨Notchers,

欢迎来到MSDN论坛。

根据你的描述,我想你可以尝试使用扩展工具

File嵌套
。该工具使开发人员能够手动嵌套和删除任何文件。

According to your description, I suppose you can have a try with the extension tool File Nesting. The tool enables developers to nest and unnest any file manually.

请右键单击项目名称并添加文本文件,然后右键单击此文本文件并选择文件嵌套 - 新项目...并选择
  xxx.vb作为父项,单击"确定"保存。

Please right click the project name and add a text file, then right click this text file and choose File Nesting-New item… and select  xxx.vb as parent, click Ok to save.

之后,单击"显示所有文件"按钮以展开xxx.vb节点下的文本文件,如下所示:

通常,我们在一个帖子中讨论一个问题,对于第二个问题,你想要xxx.Designer.vb吗?我们在VS中打开此解决方案时始终默认显示? "显示所有文件"
按钮是否符合您的要求?如果没有,您能否打开一个包含更多详细信息的新主题?感谢您的理解。

最好的问候,

Sara


这篇关于管理VS2017社区解决方案资源管理器TreeNodes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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