Locked C++ Collapse All Shortcut

  • Sunday, February 15, 2009 1:31 AM
     
     
    In C#, whenever I press CTRL+O, CTRL+M, all of my regions are collapsed for me. I use this feature a lot. Is there no similar feature for the C++ editor?

    Also, when I type a region like this:

    #pragma region -- MyRegion
    #pragma endregion MyRegion

    When it gets collapsed, the closing tag is visible. Why is this?

All Replies

  • Tuesday, February 17, 2009 7:30 AM
     
     Answered
    Hi pateramj,

    Same for Visual C++ Editor

     

    Pressing  CTRL+M, CTRL+O means collapse to definitions(“Edit” -> “Outlining” -> “Collapse to Definitions”)

    The closing tag is visible by design. So that you can get information about the collapsed region content.
    For more information about #Region: http://msdn.microsoft.com/en-us/library/sd032a17.aspx


    Best Regards

    Yichun Feng


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked As Answer by Yichun Feng Friday, February 20, 2009 1:26 AM
    •