you can write a macro that calls the Visual Studio Edit.StopOutlining for you every time you open a document.
This MSDN page describes how to write a basic macro that processes events: http://msdn.microsoft.com/en-us/library/ee1f34as.aspx Instead of the WindowClosing handle WindowClosing you must handle WindowActivated .
Like this:
Public Sub windowopen(ByVal window As EnvDTE.Window, ByVal lostFocus As EnvDTE.Window) Handles WindowEvents.WindowActivated DTE.ExecuteCommand("Edit.StopOutlining") End Sub
Of course, this will call Edit.StopOutlining in every window that you open; therefore, you may need to process a little what type of document was activated.
Noffls
source share