折叠VB.net中的代码 [英] Collapse the code in VB.net

查看:269
本文介绍了折叠VB.net中的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿程序员!

也许有人可以帮我解决基本的组织问题。

我正在开发一个带有多个用户控件的程序,自定义事件等等等等。并且你可以想象,代码非常大。



我想做的是整理一下,以便我的代码更容易导航。例如:



'-----------------------活动------- ---------------------------- COL1



'---- ----------- Blah事件---------- COL2

公共类BlahEventArgs()

结束类

公共事件Blah

'---------------结束blah事件------ 2



'-------------事件处理程序------------------------ ------ COL3



'-------来自图标的事件处理程序(自定义控制------ COL4

'----------------结束图标处理程序------------------------ 4

'--------------结束事件处理程序------------------------- 3

'---------------结束事件----------------------- ---------------- 1



我用单词COL和旁边的数字表示我想要的区域喜欢崩溃。

相应的数字是显示的我希望它崩溃到;例如COL1将崩溃为1.



任何想法?帮助将非常感激。谢谢。

Hey coders!
Maybe some one can help me with basic organizing issues.
I'm working on a program with Several user controls , custom events blah blah. and as you can imagine, the code is very large.

What I would like to do is tidy up a bit so that my code is easier to navigate. example:

'-----------------------Events----------------------------------- COL1

'---------------The Blah event---------- COL2
Public Class BlahEventArgs()
end class
public event Blah
'---------------end the blah event------ 2

'------------- Event Handlers------------------------------ COL3

'-------handlers for events from icon(custom control------ COL4
'----------------end icon handler------------------------ 4
'-------------- End Event Handlers------------------------- 3
'---------------end events--------------------------------------- 1

I hove the word COL and a number beside it to represent an area that i would like to collapse.
Th corresponding number is to show where i would like it to collapse to; for instance COL1 will collapse to 1.

Any ideas? Help would be so much appreciated. Thank you.

推荐答案

您是否考虑过#Region Directive?

http://msdn.microsoft.com/en-us/library/sd032a17.aspx [ ^ ]
Have you considered "#Region Directive" ?
http://msdn.microsoft.com/en-us/library/sd032a17.aspx[^]


这篇关于折叠VB.net中的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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