How to disable Visual Studio's intellisense when using lambda expressions in Razor
When in a Razor .cshtml file, I want to create the line:
@this.Html.LabelFor( x => x.Name )
However, after typing the first 'x', Visual Studio's intellisense attempts to auto-complete this for me.
Is there a way to disable the autoselect when a lambda expression may be typed, as it does 开发者_JAVA百科in standard .cs files?
I don't want to untick the "Committed by pressing the space bar" option in the Tools/Text Editor/C#/IntelliSense menu.
There don't seem to be any options to specifically control intellisense in Razor, in lambdas. However, you could turn on "low impact intellisense" by pressing Ctrl+Alt+Space when you're typing one (and the same to turn it off). This will stop the intellisense automatically select things (you have to manually pick them). Sure, it's a pain to turn on/off all the time, but it might be better than nothing.
精彩评论