ID:1666737
 
Keywords: endregion, region
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
It would be cool if we had #region #endregion where we could collapse certain pieces of code (while displaying the region name)

So you could collapse with

#region StatDisplay
//statcode
#endregion

Like in visual studio C#


http://msdn.microsoft.com/en-us/library/9a1ybwek.aspx
I support this fully. Auto-expanders on procs and verbs would be nice too.
http://www.byond.com/forum/?post=102250

Surely #region would be easier to add than actual block detection, but who knows what the text editor control is even capable of.
In response to Kaiochao
Kaiochao wrote:
http://www.byond.com/forum/?post=102250

Surely #region would be easier to add than actual block detection, but who knows what the text editor control is even capable of.

Visual Studio has both block detection & #region. I have to say though, i much prefer #region over block detection.




When you hover over it


It looks much better in my opinion
I'm a fan of both, though explicit #region directives would be better, yes.