Expanding & collapsing COBOL code with little and - signs ???

Completely by accident, I see that it's <theoretically> possible to expand and collapse portions of COBOL source code.  Just thrashing around, I somehow managed to create little and - signs next to the line number, just before column 1, and that clicking them causes code sections to appear and disappear.  My problem is that I can't find documentation about how to create, delete, and generally manage the expand / collapse function.  I would be most grateful to be pointed in the right direction.

My Micro Focus product specs are as follows.

Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.6.01586 SP1Rel

Installed Version: IDE Standard

Microsoft Visual Web Developer 2010 01011-532-2002361-70367
Microsoft Visual Web Developer 2010

Parents
  • Verified Answer

    The specs that you posted are for the Microsoft Visual Studio product version and not the Micro Focus Visual COBOL version. Since we have not had support for Visual Studio 2010 in a couple versions I am assuming that you are not on the latest release.

    The expandable sections of code that you reference are known as regions in Visual Studio. They are part of the Outlining feature. If you look up Outlining in the Visual Studio docs you will find information on how to turn this on and off. Normally you can right-click in the edit window and select the Outlining menu option.

    Depending on the product release you are using the support for regions may differ. By default regions are created automatically for the various sections of a COBOL program so that for example you can close the working-storage section while you are working in the procedure division. For each section or paragraph within the procedure division a region will also be created. Starting with V2.3 the $REGION statement is supported allowing you to define your own regions using $REGION - $END-REGION to surround blocks of code that you want to folded or expand in the editor.
    In the next release, 3.0 each 01 level in the data division will also be setup as an expandable region.
Reply
  • Verified Answer

    The specs that you posted are for the Microsoft Visual Studio product version and not the Micro Focus Visual COBOL version. Since we have not had support for Visual Studio 2010 in a couple versions I am assuming that you are not on the latest release.

    The expandable sections of code that you reference are known as regions in Visual Studio. They are part of the Outlining feature. If you look up Outlining in the Visual Studio docs you will find information on how to turn this on and off. Normally you can right-click in the edit window and select the Outlining menu option.

    Depending on the product release you are using the support for regions may differ. By default regions are created automatically for the various sections of a COBOL program so that for example you can close the working-storage section while you are working in the procedure division. For each section or paragraph within the procedure division a region will also be created. Starting with V2.3 the $REGION statement is supported allowing you to define your own regions using $REGION - $END-REGION to surround blocks of code that you want to folded or expand in the editor.
    In the next release, 3.0 each 01 level in the data division will also be setup as an expandable region.
Children
No Data