how do u make the source code automaticlly collapse to definitions when opening the file?
I have outlining mode on but everytime I open a file, I need to manually collapse.
Printable View
how do u make the source code automaticlly collapse to definitions when opening the file?
I have outlining mode on but everytime I open a file, I need to manually collapse.
I think it has to do with what's opwn/closed at the time you save the file.
TG
Add this to the Enviorment Events in the MacroIDE
VB Code:
Private blnLoading As Boolean Private Sub DocumentEvents_DocumentOpened(ByVal Document As EnvDTE.Document) Handles DocumentEvents.DocumentOpened blnLoading = True End Sub Private Sub WindowEvents_WindowActivated(ByVal GotFocus As EnvDTE.Window, ByVal LostFocus As EnvDTE.Window) Handles WindowEvents.WindowActivated If blnLoading Then DTE.ExecuteCommand("Edit.CollapsetoDefinitions") blnLoading = False End If End Sub
How Does one edit the MacroIDE?
Tools->Macros->Macro IDE
or
Alt-F11
This may only be available in Enterprise or Professional (I am not sure which)