Results 1 to 4 of 4

Thread: Regions - Very cool feature

  1. #1
    Ergo60
    Guest

    Regions - Very cool feature

    How many of you know about defining Regions in your code?

    It is a really cool way to be able to hide parts of your code.

    First enter the following above the code you want to be able to hide/Display

    PHP Code:
    #Region "Enter descriptive text here" 
    then at the bottom of the code section add the following

    PHP Code:
    #End Region 
    You will now notice a - icon that when clicked will close up the area in between and the text you entered in the definnition of the region will be there describing what is being hidden,

    While at first this seems trivial, it really helps to be able to hide sections of code in very large modules.

    I use them for hiding the variable definitions section, and then for sections of code that I know are working properly, it eliminates the scrolling past functions that are good to go.

    Try it out, I am sure you will like it.

  2. #2
    Junior Member
    Join Date
    Feb 2002
    Location
    London UK
    Posts
    29
    Yep very good point Brian ... I, like you use it to wrap code which works.

    Cheers
    Simon

  3. #3
    Addicted Member Geoff Gunson's Avatar
    Join Date
    Jun 1999
    Posts
    241
    I like the opacity and anchoring settings, simple things as they say.

    G

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Anchoring..oh man...what a god sent!!!
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width