I have no intellisense with views in visual studio

2019-08-10 06:08发布

问题:

I have no intellisense of any kind in visual studio..

Here is my basic view:

    @{
    ViewBag.Title = "MakeMenu";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model PArticle.Models.Menu
<h2>MakeMenu</h2>


<table> 
<tr>
<td>
 Menu:    @Html.Editor("menu")
 <td>

 <td>
   Submenu:    @Html.Editor("submenu")
 </td>

 </tr>
 <tr>
   <td align="center" colspan="2">

   </td>
 </tr>
 </table>

It doesnt matter what I type, intellisense never works..why is that?

回答1:

Can you please verify "Auto List Members" is checked for AllLanguages and C# in VS2010 => Tools =>Options => Text Editors



回答2:

first re install mvc engine and if not solve reinstall the vs maybe solve your problem