Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 XAML Designer Has No Syntax Highlighting

So I just upgraded to Visual Studio 2017, and sure enough I encountered a few problems. The most recent one is the XAML designer is refusing to show colored syntax highlighting. Here's a picture:

enter image description here

I have tried resetting my settings through Tools->Import and Export Settings->Reset All Settings. However, this did nothing but reset my layout. Is anyone else experiencing this? How can I fix it?

like image 785
Krythic Avatar asked Mar 19 '17 01:03

Krythic


People also ask

How do I edit XAML in blend for Visual Studio?

You can create user interfaces for your apps by dragging controls from the Toolbox window (Assets window in Blend for Visual Studio) and setting properties in the Properties window. You can also edit XAML directly in XAML view. For advanced users, you can even customize the XAML Designer.

What is the XAML designer in Visual Studio?

Privacy policy. Thank you. The XAML Designer in Visual Studio and Blend for Visual Studio provides a visual interface to help you design XAML-based apps, such as WPF and UWP.

How do I Turn Off XAML designer errors?

Not all errors or warnings have a corresponding code. Such errors are usually XAML Designer errors. Open the Options dialog by selecting Tools > Options, and then select Text Editor > XAML > Miscellaneous. Uncheck the Show errors detected by the XAML designer check box.

How do I debug XAML in Visual Studio?

Open the Options dialog by selecting Tools > Options, and then select Text Editor > XAML > Miscellaneous. Uncheck the Show errors detected by the XAML designer check box. Learn how to use the Live Visual Tree and Live Property Explorer tools while debugging to inspect XAML properties and get a tree view of UI elements.


1 Answers

I think the font's or the settings for the XAML highlighting are missing. The easiest thing that I suggest you trying, which is already available to you is:

1)Go to Start

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

3)You are going to have 3 options depending on the version you have installed

4)You will have 3 Buttons. Click the hamburger menu button (3rd).
enter image description here

5)Select Repair.

That should repair the installation and I believe it should work just fine!

like image 86
KonKarapas Avatar answered Sep 18 '22 08:09

KonKarapas