Intellisense not working properly for .aspx files in Visual Studio

Viewed 793

Recently, my intellisense stopped working for asp and user controls alike.

I start typing <asp: which should bring up a dropdown menu with suggestions like <asp:Textbox and <asp:Label, but all I am getting is <asp:Content instead of a full list of available controls.

Picture of Expected Behavior

Picture of Current Behavior

This is a problem with all of the visual studio projects/solutions that I have and It is unique to .aspx files. Intellisense is working for all other files types.

I've also noticed that the *.designer.vb files are not reloading/regenerating when I make changes to the corresponding .aspx file. Both issue seem to have started at the same time.

Update: I think it's worth mentioning that intellisense is also not functioning for javascript inside .aspx files as well (previously did). I'm not getting any html5 elements in the dropdown either. The properties window also is empty and there are no options to select from the drop down.

Things I have tried

  • Reinstalling Visual Studio 2019 Professional
  • Repairing Visual Studio 2019 Professional
  • Installing Visual Studio 2019 Community
  • Disabling all third party extensions
  • Re-cloning the project from the repository
  • Deleting AppData\Roaming\Microsoft\VisualStudio\16.x_xxxxxxxx
  • Deleting [project].vbproj.*
  • Deleting .vs folder
  • Matt's suggestion below: Making sure Intellicode is set up properly

I'm really scratching my head on this and I'm at the point where I'm considering reinstalling windows to start fresh.

I kinda think I might be missing some configuration files or something like that at the program level that aren't auto-generating.

1 Answers

Have you tried going to Options -> Intellicode -> General and making sure everything is set up the way you need it? You can reach that dialog by typing in "Intellicode" in the Search bar.

Related