I’d like the regions that show up in my Visual Studio window to be expanded by default when I open a code file. Is this possible in VS2010, or is there an extension that will do that for me?
Barring that, is my request a thing that can be written in an extension?
you could write a macro that calls the Visual Studio Command
Edit.StopOutliningfor you every time you are opening a document.This MSDN Page describes how to write a basic macro that handles events: http://msdn.microsoft.com/en-us/library/ee1f34as.aspx
Instead of handle the
WindowClosingyou should handleWindowActivated.Like this:
Of course, this will call
Edit.StopOutliningon every window you are opening; so maybe you have to do a little bit of filtering what documenttype was activated.