+ Reply to Thread
Results 1 to 6 of 6

Thread: #region Blocks

  1. #1
    rackley
    Guest rackley's Avatar

    Lightbulb #region Blocks

    One of the best best things about Visual Studio 2003 is the ability to use region blocks to collapse code. For those who don't develop in the computer arena as well, it works like this:

    .. Code 1 ...
    #region MyRegion
    .. Code 2 ...
    #endregion
    .. Code 3 ...

    Clicking on a little "-" next to the #region header collapses the region and all code in it to a single

    "MyRegion"

    line in light grey text. Clicking on the now "+" icon next to it expands it again. This is IMMENSELY helpful when writing programs of any real length as it allows you to collapse arbitrary blocks of code into single lines. For example, you can have all your init code and put region markers around it and collapse it. You can collapse subroutines/functions, multiple subsroutines/functions, or parts of subroutines/functions.

    It's hard to express how wonderful this feature is until you've got a program that's 500+ lines and start to use it.

    You may have to call it something other than a region or implement it somewhat differently to avoid the IP stuff, but chalk this one up on the wish list please!

    Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?

    Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE

    Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS




  2. If you're a Licensed user of PROTON DEVELOPMENT SUITE, apply for Licensed User Status to remove these pesky messages
     and get access to additional forum areas, Beta test downloads and more!

  3. #2
    rackley
    Guest rackley's Avatar


    Default

    Whoops, meant to post this in the "Mecanique - IDE" forum.

  4. #3
    Super Moderator Maverick's Avatar
    Join Date
    Sep 2002
    Location
    St Elswhere
    Posts
    2,027


    Default

    I remember this from an AMIGA language called AMOS which was the same thing, you could collapse functions to a single line, it is a pretty nifty feature but i`m not sure how well it would translate to proton

  5. #4
    rackley
    Guest rackley's Avatar


    Default

    I think it would work quite well if you could mark and collapse user-defined blocks of code. Collapsing SUBs wouldn't be as ideal though.

  6. #5
    Licensed User johngb's Avatar
    Join Date
    Oct 2003
    Location
    Surrey, UK
    Posts
    1,340


    Default

    I use Include files to make the code more manageable but this would be a very useful additional function.

    JohnB

  7. #6
    Moderator Mark Rodgers's Avatar
    Join Date
    Jul 2002
    Location
    Hailsham
    Posts
    1,242


    Default

    In the latest beta version under "hidden/notyet/2026", there is a butttonn that will compile code from colloquialism, eg, "if I collapse[tennants]:then pig=pickmeup<>wife beatme2*uk", this is, as far as I know, the only place that will help all users in their need for help in the help of the help of the help file.
    I am sure this is of help in the help of the help file regionaly.
    73 de Mark G0EBB.

+ Reply to Thread

Similar Threads

  1. CodeBlocks Plugin - Collapse & Expand Blocks of Code
    By swright in forum Mecanique - IDE
    Replies: 3
    Last Post: 23rd March 2007, 02:16
  2. Expand/Collapse blocks of text
    By rackley in forum Mecanique - IDE
    Replies: 18
    Last Post: 19th February 2006, 20:14
  3. Characters to separate blocks of code
    By future in forum Wish List / Product Feedback
    Replies: 1
    Last Post: 18th May 2004, 12:52

Members who have read this thread since 2nd May 2012, 22:24 : 0

Actions :  (Set Date)  (Clear Date)

You do not have permission to view the list of names.

Posting Permissions

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