IntelliSense doesn't work in large XAML file

1.1k views Asked by At

After updating Visual Studio IntelliSense stopped working in one XAML file where about 2220 lines of code. It works in other files and starts working when I delete part of the code. I tried to delete the .vs folder, delete and add this file and it didn't help

4

There are 4 answers

0
Mr Qian On BEST ANSWER

IntelliSense doesn't work in large XAML file

Please try these steps:

Suggestion

1) Close VS Instance, delete bin and obj folder and then restart your project.

2) Right-click on the XAML file in the Solution Explorer and then select Open With>Source Code (Text) Editor and set it as default.

3) Right click the XAML file>Properties>Build Action>change it to something else and back

4) Add a new xaml file under this specific project and check if its intellisense works or not.

5) If you use Resharper Extension, please disable it under Extensions-->Manage Extensions and then restart your VS.

1
DaemosOfChaos On

I ran into this issue after upgrading to Visual Studio 2022 17.6. After wasting time trying to figure this silly problem out, I stumbled upon this thread. Suggestion #2 from Mr Qian worked for me. Thank you! It appears that 17.6 simply defaults your default editor for XAML to their new XML editor. Why Microsoft does these things boggles the mind.

0
prime23 On

I uninstalled resharper and xaml auto complete does not working anymore. What I have tried:

  1. stackoverflow.com answer, not working
  2. Repare by vs installer, not working
  3. Uninstall completely and reinstall, not working

At last, I resetted vs setting(Tool => Import and export settings), the xaml auto complete function works again.

Note: although the auto list member option is gray out and unchecked (I use 17.6.2 and 17.1 preview 1), but after reset vs settings, xaml auto complete works well.

0
San Jahaziel On

This works for me "2) Right-click on the XAML file in the Solution Explorer and then select Open With>Source Code (Text) Editor and set it as default."