- Edited
It seems this only happens if you open .php
files without having a project/solution.
Without a solution, Visual Studio doesn't save the outlining state and doesn't restore it properly after reopening the file. Since #region
is collapsed by default, Visual Studio always collapses it.
Also, without a project/solution, most of the features just won't work.
Is this the case?
In this case,
- it's always better to use projects or open a folder (File / Open / Folder)
- don't delete
.vs
directory created by Visual Studio - it contains the region's collapsed state - or eventually, we can create an option to not collapse
#region
by default