Alex Rivera | Logout

Automatic outlining (collapsible sections) does not start for .ASPX files in Visual Studio 2010 SP1

Asked 2011-08-18T19:53:24.347
14

In Visual Studio 2010 SP1, automatic outlining is not enabled for ASPX files when I open them. For each file opened, I need to click Edit / Outlining / Start automatic outlining, which is extremely annoying. This step is not necessary when code-only (non-ASPX) files are opened.

I use a few extensions, all of them from MS, including Power Tools, the JavaScript tools, etc., and I thought that maybe they were causing the problem, so I disabled all of them and restarted VS, but the problem still exists.

I did not have this problem with VS2010 (no SP) on Win XP Pro, which I used for about 18 months, but I recently did a clean install of Win 7 x64, VS2010, and VS2010 SP1, and now I have this issue.

Any ideas?

Edit
Report

1 Answer

16

This worked for me:

In the registry, look here:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\HTML Editor

for a value named OutlineHTMLOnFileOpen. Mine was set to 0, change it to 1. Make sure you do this while VS is closed, as it saves this value out on exit and will change it back.

answered 2012-03-28T16:43:14.180

Your Answer