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

前端 未结 4 823
南笙
南笙 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:13

    I had tried working out some Visual Basic code for a macro myself, borrowing from different places, and couldn't get anything to work. So what did I do? Why, I asked a question on StackOverflow of course! It got answered, I added the suggested code to my EnvironmentEvents macro, and now when I open CS files, after about a second, all my definitions are collapsed. :)

提交回复
热议问题