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
IntelliSense doesn't work in large XAML file
1.1k views Asked by Mykhailo Pantia At
4
There are 4 answers
1
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
On
I uninstalled resharper and xaml auto complete does not working anymore. What I have tried:
- stackoverflow.com answer, not working
- Repare by vs installer, not working
- 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.
Please try these steps:
Suggestion
1) Close VS Instance, delete
binandobjfolder and then restart your project.2) Right-click on the XAML file in the Solution Explorer and then select
Open With>Source Code (Text) Editorand set it as default.3) Right click the XAML file>
Properties>Build Action>change it to something else and back4) 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 Extensionsand then restart your VS.