Is there a way to specify outlining defaults in Visual Studio 2008 so that a file opens up with members collapsed by default?

前端 未结 4 838
南笙
南笙 2021-01-02 16:33

What I would like to do is have VS2008, when I open a code file, collapse all members of the classes/interfaces in the file by default (including, crucially, any XML documen

4条回答
  •  滥情空心
    2021-01-02 17:07

    It would be much easier to use the Visual Studio Macros to do the same thing. Editing the "EnvironmentEvents" Macro file in MyMacros and adding a handler for DocumentEvents.DocumentOpened with :
    DTE.ExecuteCommand("Edit.CollapsetoDefinitions")

提交回复
热议问题