How to disable Visual Studio intellisense when using lambda expressions in Razor

When in the Razor.cshtml file I want to create a line:

@this.Html.LabelFor( x => x.Name ) 

However, after entering the first "x", Visual Studio intellisense tries to automatically complete this for me.

Is there a way to turn off automatic highlighting when a lambda expression can be entered, as is the case in standard .cs files?

I do not want to disable the "Force by pressing the space bar" option in the "Tools / Text Editor / C # / IntelliSense" menu.

+6
c # visual-studio-2010 asp.net-mvc-3 razor intellisense
source share
1 answer

There seems to be no option to specifically control intellisense in Razor, in lambdas. However, you can enable β€œlow intellisense punch” by pressing Ctrl + Alt + Space when you type one (and the same to disable it). This will stop intellisense auto-fetching (you must manually select them). Of course, it is a pain to turn on / off all the time, but it can be better than nothing.

+1
source share

All Articles