Visual Studio 2015 CE intellisense一直在关闭

时间:2021-10-18 02:43:16

I have quite an odd issue in VS 2015 CE. I'm working on a ASP MVC site and when I I try to access Model properties using Razor in view inside a method a visual studio immediately closes the intellisense window which shows the available properties.

我在VS 2015 CE中有一个奇怪的问题。我正在开发一个ASP MVC站点,当我尝试在方法中使用Razor访问Model属性时,visual studio会立即关闭显示可用属性的intellisense窗口。

Works perfectly:

@Model.Shared.UserName 

Doesn't work

@Html.Raw(Model.Shared.UserName)

When I'm typing the "Model." inside a method, Visual studio keeps closing up the suggestion window. This is becoming really annoying. Has anyone experienced something similar?

当我输入“模型”时。在一个方法中,Visual Studio不断关闭建议窗口。这变得非常烦人。有没有人经历类似的事情?

The window I'm referring to: Visual Studio 2015 CE intellisense一直在关闭

我指的窗口:

1 个解决方案

#1


2  

A workaround that I've managed to satisfy myself with after half a year is to use ReSharper which amazingly fixed this issue as well. It's not exactly solution to why the Visual studio is acting this way, but there is probably little left to do.

半年后我设法让自己满意的一种解决方法是使用ReSharper,这也解决了这个问题。这并不完全解决Visual Studio以这种方式行事的原因,但可能还有很多工作要做。

#1


2  

A workaround that I've managed to satisfy myself with after half a year is to use ReSharper which amazingly fixed this issue as well. It's not exactly solution to why the Visual studio is acting this way, but there is probably little left to do.

半年后我设法让自己满意的一种解决方法是使用ReSharper,这也解决了这个问题。这并不完全解决Visual Studio以这种方式行事的原因,但可能还有很多工作要做。