Visual Studio 2015 - automatic crash # areas and inactive code

In each version of Visual Studio until 2013, the code wrapped in #region and inactive code in the #if statements are automatically collapsed when the C # code file is opened for the first time, when "enter the selection mode when opening files".

I’m trying to figure out how to enable this in Visual Studio 2015 RC, but even turning on “entering selection mode when opening files” seems to have no effect. In any case, it seems that the file opens, and then VS activates the selection mode after a second, without checking whether something needs to crash.

+8
c # visual-studio visual-studio-2015 region vs-2015-preview
source share
3 answers

Well, it looks like the auto-collapse feature works again in VS2015 Update 1, so now the answer seems to be “install update 1”.

+2
source share

There are currently no built-in functions in Visual Studio 2015.

You might want to check out the extension I have Hate #Regions . It can automatically expand regions when opening a file.

+1
source share

It seems like this is a problem with VB, not C #:

" VB code failed in VS2015 update 1 # 9189 "

https://github.com/dotnet/roslyn/issues/9189

It still crashed in update 3, so I hope they access it in update 4.

0
source share

All Articles