Tuesday, October 26, 2010

Structure Code With #region

In bigger code projects the code view can quickly become confusing, if all functions etc. are extended, there is quite some scrolling to do, to reach the bottom of the code when starting from the top.
But blocks of code can luckily be structured very easily with the code word #region. This code word starts a block, which is finished by #endregion. The defined regions can then retracted and extended as for example functions:

Default (extended):










Retracted:

No comments:

Post a Comment