Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vs 2017 intellisense not working C# and XAML

I have a Strange issue that I can't seem to fix, my Intellisense for XAML is no longer showing up and the code behind is only showing the premade Members. The Classes and Methods I have made are not showing up. Also Visual Studios is not recognizing other pages and wont recognize Navigation either.

I have tried going to Tools>Text Editor>C#>Intellisense -Statement completion and checking the boxes Auto list members and Parameter information. I also tried to clear out the cache.

From what I have researched it seems nobody else is having the same problems.

like image 926
CalebR Avatar asked Aug 16 '17 18:08

CalebR


2 Answers

  1. Close all open tabs in the project and quit VS, reopen the solution in VS and right click the XAML file in the Solution Explorer and then select Open With….> Source Code (Text) Editor.
  2. Delete obj folder and clean project
  3. Right click the XAML page>Properties>Build Action>change it to something else and back
  4. Add a new content page under this specific project and check it works or not.

I would like to add that this worked for my .cs files only.

To get the XAML files Intellisense to work try to repeat the above steps on your .cs files or wait for the XAML files to gain Intellisense.

like image 151
CalebR Avatar answered Oct 04 '22 10:10

CalebR


For ReSharper users: I found that having ReSharper's IntelliSense enabled for all languages can break Intellisense unexpectedly (especially for XAML files). Here's how I was able to fix the same problem that the asker had in Visual Studio 2017 with ReSharper installed:

  1. In Visual Studio, go to the ReSharper menu and click on Options.
  2. On the left side go to Environment > IntelliSense > General.
  3. Select the Custom IntelliSense radio button.
  4. Change any languages that have broken IntelliSense to Visual Studio (like XAML).
  5. Click the Save button.
like image 35
Lews Therin Avatar answered Oct 04 '22 10:10

Lews Therin