How to Set [collapse to definition] automically ?

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

every time i write my code, I need to right click mouse , and set collapse
to definition].
How I can i set it globally or automically ??
thanks
from agnes
 
* "Agnes said:
every time i write my code, I need to right click mouse , and set collapse
to definition].
How I can i set it globally or automically ??

I doubt that this is possible...
 
Agnes,
Have you considered creating a VS.NET macro that handles the
DocumentEvents_DocumentOpened event?

Something like (untested):

Private Sub DocumentEvents_DocumentOpened(ByVal Document As
EnvDTE.Document) Handles DocumentEvents.DocumentOpened
DTE.ExecuteCommand("Edit.CollapsetoDefinitions")
End Sub

Note you may need to use a different VS.NET event the above event is not
working as I would expect... Look in EnvironmentEvents module in the VS.NET
Macro IDE for the list of objects that support events...

Although I normally use Ctrl+M Ctrl+O (rather then right click...).

Hope this helps
Jay
 
Back
Top