VS 2015 Razor Autocomplete/Intellisense dropdown hides immediately after dropdown

后端 未结 8 511
醉酒成梦
醉酒成梦 2020-12-13 05:53

In VS 2015, only when in Razor (.cshtml) files, roughly half of the time the autocomplete/suggestion list/intellisense doesn\'t work correctly (sorry, not sure the actual te

8条回答
  •  执笔经年
    2020-12-13 06:56

    Just make sure the ) does not touch the text you are editing, and the popup will stay up.

    Instead of...

    @Html.Partial("ManageGrid", Model.)

    Use...

    @Html.Partial("ManageGrid", Model. )

    The intellisense seems to get confused by touching close parenthesis. Not ideal, but this was the only way I could get it to work for me consistently.

提交回复
热议问题