locked
Looking for an extension I once had RRS feed

  • Question

  • I changed computers and do no have access to my old computer. I had an extension, which I cannot seem to find, that allows you to collapse code within a method, such as foreach, if, and other statments.

    Does any know know the name of this extension or can provide a link for it?

    I've searched through them but I cannot seem to find it.

    Thank you!

    Thursday, March 22, 2012 4:33 PM

Answers

  • Hi,

    you can use Region for collapse code

    class Test
    {
        static void Main()
        {
            if (DateTime.Now.Hour > 12)
            {
    #region Foo
                Console.WriteLine("Afternoon");            
            }
    #endregion
        }
    }

    Regards

    Sophia
    • Edited by SophiaParker Sunday, March 25, 2012 4:07 PM
    • Marked as answer by lucy-liu Monday, April 2, 2012 6:32 AM
    Sunday, March 25, 2012 4:06 PM
  • Hi TechGuyAlabama,

    This forum can help you with the issues you encountered when you developed your own add-ins.

    But if you want to find an extension, I think you can find the extension for the Visual Studio from this link:http://visualstudiogallery.msdn.microsoft.com/ .

    Thank you for your understanding!


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by lucy-liu Monday, April 2, 2012 6:32 AM
    Monday, March 26, 2012 5:47 AM

All replies

  • Hi,

    you can use Region for collapse code

    class Test
    {
        static void Main()
        {
            if (DateTime.Now.Hour > 12)
            {
    #region Foo
                Console.WriteLine("Afternoon");            
            }
    #endregion
        }
    }

    Regards

    Sophia
    • Edited by SophiaParker Sunday, March 25, 2012 4:07 PM
    • Marked as answer by lucy-liu Monday, April 2, 2012 6:32 AM
    Sunday, March 25, 2012 4:06 PM
  • Hi TechGuyAlabama,

    This forum can help you with the issues you encountered when you developed your own add-ins.

    But if you want to find an extension, I think you can find the extension for the Visual Studio from this link:http://visualstudiogallery.msdn.microsoft.com/ .

    Thank you for your understanding!


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by lucy-liu Monday, April 2, 2012 6:32 AM
    Monday, March 26, 2012 5:47 AM