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 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.
It's actually easy for most languages: Select Tools/Options on the menu. On the Options dialog box, select Text Editor, then select the language you use, then select "General". Uncheck "Auto list members" and "Parameter completion".
Go to Tools | Options | Text Editor | C/C++. This dialog displays a window that allows you to toggle Automatic brace completion. Automatic brace completion is the feature where, when you type { , a corresponding } is automatically typed for you.
Visual Studio Code IntelliSense is provided for JavaScript, TypeScript, JSON, HTML, CSS, SCSS, and Less out of the box. VS Code supports word based completions for any programming language but can also be configured to have richer IntelliSense by installing a language extension.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With