本文介绍了如何使用等效于C#.NET的#region/#endregion(概述)来组织xml数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 C#/.NET中的#region/#endregion 命令.我正在编辑此文件Visual Studio2008.

I'd like to organize my XML data to be collapsable and expandable using a preprocessor command like the #region/#endregion command in C#/.NET. I'm editing this file Visual Studio 2008.

是否存在这样的能力?我用谷歌搜索都无济于事.到目前为止,我能找到的最接近的是自己扩展和折叠标签,因此我可以在

Does any such ability exist? I've googled to no avail. The closest I can come to so far is to expand and collapse the tags themselves, so I can collapse between

<Data> 
(this is collapsed)
</Data>

推荐答案

似乎没有任何Visual Studio支持的功能来执行我想做的事情.如 Oded的讨论答案,最好的解决方案是添加

There does not appear to be any Visual Studio supported ability to do what I'm looking to do. As discussed in Oded's answer, the best solution was to add XML comments like

<!--START [enter description]--> 
<myDataHere .../>
<!--END [enter description]--> 

使用空格组织代码.

这篇关于如何使用等效于C#.NET的#region/#endregion(概述)来组织xml数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 13:19