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.
在Visual Studio 2010 SP1中,当我打开时,自动提纲对于ASPX文件是没有启用的。对于打开的每个文件,我需要单击Edit / outline / Start automatic outline,这非常烦人。当只打开代码(非aspx)文件时,不需要这个步骤。
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.
我使用了一些扩展,所有的扩展都来自MS,包括Power工具、JavaScript工具等等,我认为可能是它们导致了问题,所以我禁用了所有的扩展,重新启动VS,但是问题仍然存在。
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.
我对Win XP Pro上的VS2010(没有SP)没有这个问题,我使用了大约18个月,但是我最近对Win 7 x64、VS2010和VS2010 SP1进行了一次干净的安装,现在我有了这个问题。
Any ideas?
什么好主意吗?
5 个解决方案
#1
15
This worked for me:
这工作对我来说:
In the registry, look here:
在登记处,请看这里:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\HTML Editor
微软HKEY_CURRENT_USER \ Software \ \ VisualStudio \ 10.0 \ HTML编辑器
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.
获取名为OutlineHTMLOnFileOpen的值。我的设为0,设为1。请确保在关闭VS时执行此操作,因为它在退出时保存此值并将其更改回。
#2
4
I had this issue and it was driving me crazy all week!!
我有这个问题,整个星期都让我发疯!!
Finally managed to fix it really easy:
终于很容易地解决了:
Make sure the registry value for OutlineHTMLOnFileOpen is set to: -1
确保OutlineHTMLOnFileOpen的注册表值设置为:-1
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\HTML Editor
OutlineHTMLOnFileOpen = -1
Open VS then open an aspx file.
打开VS然后打开一个aspx文件。
Press CTRL M then M again while keeping the CTRL key depressed.
再次按CTRL M,然后按M,同时按住CTRL键。
Press Ctrl+ M M
Wait a few moments and the automatic outlining engine will start.
稍等片刻,自动轮廓发动机将启动。
Restart VS and it should auto kick in again when you open a file.
重新启动VS,当你打开一个文件时,它应该自动重新启动。
#3
1
I had the same problem and went through and disabled my extensions. Once I disabled the Javascript Addins from Microsoft (That give the outlining and brace matching), I found I was able to change the registry setting and it didn't set change back. I'm going to reinstal the addin to see if it was the actual cause.
我也遇到了同样的问题,我检查了我的扩展。一旦我禁用了来自Microsoft的Javascript Addins(它提供了大纲和括号匹配),我发现我可以更改注册表设置,它没有设置更改。我将恢复插件,看看它是否是真正的原因。
#4
0
I posted the same question at the MS forums, and was told to do the following, which I have not yet had time to try, but I thought I would add it here for now:
我在MS论坛上发布了同样的问题,并被告知要做如下的事情,我还没有时间去尝试,但是我想我现在应该把它添加到这里:
Please try to create two new project (one is the same type project as your previous project, one is another type project.) see whether this issue still exists.
请尝试创建两个新项目(一个是与您之前的项目相同的类型项目,一个是另一个类型项目),看看这个问题是否仍然存在。
If this issue still exists, you can try the following solutions:
如果这个问题仍然存在,你可以尝试以下方法:
If we reboot the operating system to safe mode, do we have the problem? This can help to isolate whether any other applications are interfering with Visual Studio. Note that some features (like IIS) are not available under safe mode. Please check whether this can apply or not. In addition to safe mode, we can also suggest “clean boot”: http://support.microsoft.com/kb/310353 .
如果我们重新启动操作系统到安全模式,我们有问题吗?这可以帮助隔离其他应用程序是否干扰Visual Studio。注意,有些特性(如IIS)在安全模式下不可用。请检查这是否适用。除了安全模式外,我们还可以推荐“clean boot”:http://support.microsoft.com/kb/310353。
If we create a new user account, do we have the problem? This can help to isolate user profile corruption related causes.
如果我们创建一个新的用户帐户,我们有问题吗?这可以帮助隔离与用户配置文件损坏相关的原因。
If we use “devenv.exe /resetsettings”, does it solve the problem? It restores Visual Studio default settings.
如果我们用“devenv。exe /resetsettings“,它能解决问题吗?它恢复Visual Studio默认设置。
If the problem remains, we can use Visual Studio Setup Wizard (via Control Panel) to repair Visual Studio. It can restore the Visual Studio Installation into its original state.
如果问题仍然存在,我们可以使用Visual Studio Setup Wizard(通过控制面板)来修复Visual Studio。它可以将Visual Studio安装恢复到原始状态。
The forum thread is here.
论坛帖子在这里。
I will provide my results if I make progress.
如果我有进展,我会提供我的结果。
#5
0
Using Ctrl + M should toggle this if you're focused on the file having trouble. I had the same problem until I realized had been accidentally using the hot keys to turn this on and off.
如果您关注的是有问题的文件,可以使用Ctrl + M来切换。我也有同样的问题,直到我意识到我不小心使用了热键来打开和关闭它。
#1
15
This worked for me:
这工作对我来说:
In the registry, look here:
在登记处,请看这里:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\HTML Editor
微软HKEY_CURRENT_USER \ Software \ \ VisualStudio \ 10.0 \ HTML编辑器
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.
获取名为OutlineHTMLOnFileOpen的值。我的设为0,设为1。请确保在关闭VS时执行此操作,因为它在退出时保存此值并将其更改回。
#2
4
I had this issue and it was driving me crazy all week!!
我有这个问题,整个星期都让我发疯!!
Finally managed to fix it really easy:
终于很容易地解决了:
Make sure the registry value for OutlineHTMLOnFileOpen is set to: -1
确保OutlineHTMLOnFileOpen的注册表值设置为:-1
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\HTML Editor
OutlineHTMLOnFileOpen = -1
Open VS then open an aspx file.
打开VS然后打开一个aspx文件。
Press CTRL M then M again while keeping the CTRL key depressed.
再次按CTRL M,然后按M,同时按住CTRL键。
Press Ctrl+ M M
Wait a few moments and the automatic outlining engine will start.
稍等片刻,自动轮廓发动机将启动。
Restart VS and it should auto kick in again when you open a file.
重新启动VS,当你打开一个文件时,它应该自动重新启动。
#3
1
I had the same problem and went through and disabled my extensions. Once I disabled the Javascript Addins from Microsoft (That give the outlining and brace matching), I found I was able to change the registry setting and it didn't set change back. I'm going to reinstal the addin to see if it was the actual cause.
我也遇到了同样的问题,我检查了我的扩展。一旦我禁用了来自Microsoft的Javascript Addins(它提供了大纲和括号匹配),我发现我可以更改注册表设置,它没有设置更改。我将恢复插件,看看它是否是真正的原因。
#4
0
I posted the same question at the MS forums, and was told to do the following, which I have not yet had time to try, but I thought I would add it here for now:
我在MS论坛上发布了同样的问题,并被告知要做如下的事情,我还没有时间去尝试,但是我想我现在应该把它添加到这里:
Please try to create two new project (one is the same type project as your previous project, one is another type project.) see whether this issue still exists.
请尝试创建两个新项目(一个是与您之前的项目相同的类型项目,一个是另一个类型项目),看看这个问题是否仍然存在。
If this issue still exists, you can try the following solutions:
如果这个问题仍然存在,你可以尝试以下方法:
If we reboot the operating system to safe mode, do we have the problem? This can help to isolate whether any other applications are interfering with Visual Studio. Note that some features (like IIS) are not available under safe mode. Please check whether this can apply or not. In addition to safe mode, we can also suggest “clean boot”: http://support.microsoft.com/kb/310353 .
如果我们重新启动操作系统到安全模式,我们有问题吗?这可以帮助隔离其他应用程序是否干扰Visual Studio。注意,有些特性(如IIS)在安全模式下不可用。请检查这是否适用。除了安全模式外,我们还可以推荐“clean boot”:http://support.microsoft.com/kb/310353。
If we create a new user account, do we have the problem? This can help to isolate user profile corruption related causes.
如果我们创建一个新的用户帐户,我们有问题吗?这可以帮助隔离与用户配置文件损坏相关的原因。
If we use “devenv.exe /resetsettings”, does it solve the problem? It restores Visual Studio default settings.
如果我们用“devenv。exe /resetsettings“,它能解决问题吗?它恢复Visual Studio默认设置。
If the problem remains, we can use Visual Studio Setup Wizard (via Control Panel) to repair Visual Studio. It can restore the Visual Studio Installation into its original state.
如果问题仍然存在,我们可以使用Visual Studio Setup Wizard(通过控制面板)来修复Visual Studio。它可以将Visual Studio安装恢复到原始状态。
The forum thread is here.
论坛帖子在这里。
I will provide my results if I make progress.
如果我有进展,我会提供我的结果。
#5
0
Using Ctrl + M should toggle this if you're focused on the file having trouble. I had the same problem until I realized had been accidentally using the hot keys to turn this on and off.
如果您关注的是有问题的文件,可以使用Ctrl + M来切换。我也有同样的问题,直到我意识到我不小心使用了热键来打开和关闭它。