问题描述
偶尔,但很常见地,由于没有明显的原因,VS 2012会锁定一个对话框,提示等待后台操作完成".例如.这可能是在普通的旧代码编辑过程中发生的,而不是在显式调用任何IDE命令时发生的.
Occassionaly, but fairly often, for no apparent reason, VS 2012 will lock up with a dialogue that says, "Waiting for a background operation to finish". E.g. this may happen during a plain old code edit, not on explicitly invoking any IDE command.
是什么原因造成的,对此我有什么能做的吗?
What causes this, and is there anything I can do about this?
我正在运行ReSharper 7,我并不是唯一一个遇到过这种情况的人.
I am running ReSharper 7, and I am not the only one I know experiencing this.
推荐答案
我遇到了同样的问题,尤其是在cshtml页面中.我找到此页面: https://devblogs.microsoft.com/aspnet/visual-studio-11-beta-razor-editor-issue-workaround ,建议在工具>选项>文本编辑器> HTML>制表符中更改缩进选项>改为智能,而不是阻止.就我而言,它已经设置为智能,然后将其更改回阻止即可解决问题.
I was having the same problem, especially in cshtml pages. I found this page: https://devblogs.microsoft.com/aspnet/visual-studio-11-beta-razor-editor-issue-workaround that suggests changing the indent option in Tools > Options > Text Editor > HTML > Tab to Smart instead of Block. In my case it was already set to Smart and changing it back to Block fixed the problem.
更新:我错了,那不能解决对话,只是延迟了对话,直到我复制或粘贴.最终对我有用的是进入工具>导入和导出设置...>重置所有设置.
Update: I was wrong, that didn't fix the dialogue, it just delayed it until I copied or pasted. What finally worked for me was to go to Tools > Import and Export Settings... > Reset all settings.
可能相关的问题:
这篇关于Visual Studio 2012中的“等待后台操作"是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!