VS2017 Intellisense 很慢,有时会崩溃,有什么建议吗?

Joh*_*ers 3 visual-studio-2017

我正在使用 VS2017 的社区版。版本 15.2(26430.14),这是截至 2017 年 7 月 7 日的最新更新。Intellisense 偶尔会很慢,并且会阻止我的编码工作的正常进度。它似乎在等待大约 10 到 20 秒后“醒来”。但是今天,它崩溃了,活动日志显示了此信息。

 <entry>
<record>1709</record>
<time>2017/07/06 00:17:33.497</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.InvalidOperationException: Cannot Match.  The session is dismissed.&#x000D;&#x000A;   
at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.Match()&#x000D;&#x000A;  
at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.OnViewBuffer_Changed(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A;  
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)
Run Code Online (Sandbox Code Playgroud)

当时我正在编辑 XAML 并将绑定添加到 ContextMenu 的 IsOpen 属性。关闭编辑器并重新打开后,它工作正常......

我已经删除了除 Code Maid 之外的所有插件,我接下来会尝试。但是,我正在寻找解决此问题的建议。

Che*_*het 5

我有一个类似的问题。我关闭了 Visual Studio 并删除了 .vs(隐藏)文件夹并重新启动。它会自动重新生成文件夹。


Nat*_*han 5

我也有这个问题。请参阅链接(https://support.microsoft.com/en-us/help/2894215/you-experience-performance-issues-product-crashes-or-rendering-issues

似乎是某些显示驱动程序导致问题的问题。推荐的解决方法是禁用 VS2017 的硬件加速。我这样做了,它解决了我的问题。Intellisense 现在以我能打字的速度工作。

我附上了解决方法链接的屏幕截图,以防链接失效。

智能感知解决方法