Visual Studio 2017 XAML designer does not have syntax highlighting

So, I just upgraded to Visual Studio 2017, and of course, I ran into a few problems. The most recent of these is that the XAML designer refuses to show syntax highlighting. Here is the image:

enter image description here

I tried resetting my settings using Tools-> Import and Export Settings β†’ Reset All Settings. However, this is nothing but reset my layout. Does anyone else experience this? How can i fix this?

+5
source share
2 answers

I think that the font or XAML backlight settings are missing. The easiest thing that I suggest you try, which is already available to you, is:

1) Go to the beginning

2) Search and launch the Visual Studio installer
"C: \ Program Files (x86) \ Microsoft Visual Studio \ Installer \ vs_installer.exe"

3) You will have 3 options, depending on the installed version

4) You will have 3 buttons. Press the hamburger menu button (third).
enter image description here

5) Select "Repair."

This should fix the installation, and I believe that it should work fine!

+5
source

I see that you already have the accepted answer, but I found a much simpler way to solve the problem that worked for me on both machines on which I was affected.

I just opened Tools -> Options, advanced environment, clicked Fonts and Colors, and then changed my theme from Dark to Blue and clicked OK.

The XAML window then reflected the new settings and had the correct syntax highlighting. Then I switched it back to Dark (because the real developers are using a dark theme), and the syntax highlighting has worked since then.

Good luck.

+1
source

Source: https://habr.com/ru/post/1265661/


All Articles