展开/折叠状态在关闭文件后未保存(Expanded/collapsed state not saved after closing file)
在Visual Studio中,您可以在不使用区域的情况下展开和折叠代码,例如在代码隐藏页面中可以折叠方法等等。而在ASPX页面中,您可以折叠标签,标签等。
当你有一个长页面并且你想把你的开发重点放在一个特定的部分上时,这很有用。 最酷的是,您可以关闭文件并重新打开文件,并且展开/折叠块的状态完全按照您保存的方式保存。
除了一个例子。 该状态不会保存为ASPX页面中的标签,在那里最有用。
我知道VS有一些很好的插件,但我找不到解决这个问题的插件。
有没有人得到解决方案?
在提到自定义控件之前,尝试将页面缩短并不总是方便或可行,我不认为这是解决此问题的方法。
In Visual Studio, you can expand and collapse code without using regions, for example in a code-behind page you can collapse methods, etc... And in an ASPX page you can collapse tags, tags, etc...
It's useful when you have a long page and you want to focus your development on a specific part. What's cool about it too is that you can close the file and reopen it and the state of the expanded/collapsed blocks is saved exactly as you left it.
Except in one instance. That state is not saved for tags in ASPX pages, where it would be most useful.
I know there are some good plugins out there for VS but I couldn't find one that addresses this issue.
Has anybody got a solution?
Before you mention custom controls, they are not always convenient or feasible when trying to keep a page short and I don't consider this a solution to this problem.
原文:https://stackoverflow.com/questions/3401052