XML comments

Is there a button you can press or something to automatically expand/collapse all comments and methods in VB Express Should be, I just can't find it...

Answer this question

XML comments

  • Philipp S Khlupin

    hi,

    you will find a "+", or "-" sign beside every method or comments at left side you can expand or collapse this method

    more over you can use regions to put your code in groups whith also will give you the same signs

    #region "title for the region"

    end region

    hope this helps



  • SelimD

    There is no command that will expand / collapse all regions/XML comments in any of the VB Express product.

    You have to work them individually as an when you need to expand/collapse them.

    By any of the methods previous detailed.

     

     

    you will find a "+", or  "-" sign beside every method or comments at left side you can expand or collapse this method

    more over you can use regions to put your code in groups whith also will give you the same signs

    #region "title for the region"

    end region

    Or


  • Mahvish

    Pchr, you are a champion!!! Works perfectly!!! O happy day indeed!!!

  • poppy33611

    I just found out that the Ctrl M + Ctrl O shortcut combo (probably used in VS) to collapse all works in VB.net. Oh happy day.

  • Calumm

    I also just discovered that whilst (Ctrl M + Ctrl O) closes all base methods at once, (Ctrl M + Ctrl L) opens all methods at once and (Ctrl M Ctrl M) toggles the currently selected method/region. So if the cursor is positioned on a class declaration line then (Ctrl M Ctrl M) will toggle the opening/closing of the class. If you have highlighted multiple methods then all methods that are highlighted or partly so will be toggled when (Ctrl M Ctrl M) occurs. Pretty useful I have to say... Thanks again pchr!

  • phoenix.8848.cn

    I'm not sure if express offers this as I don't have a copy to test it on, but see if you have an option under Edit or right clicking inside the code window for Outlining. If so, you should be able to close all definitions or toggle them.

    Jim Wooley
    http://devauthority.com/blogs/jwooley/default.aspx



  • XML comments