ReSharper Web Help

Syntax Highlighting


You can establish a custom color scheme. For more information, see Configuring Syntax Highlighting Fonts and Colors .

Code Highlighting

ReSharper detects various problems in XAML files, such as unresolved symbols, incorrect document structure, unused import directives, etc. Whenever a problem is encountered, ReSharper highlights it and displays some description in a tooltip. For more information about ways to find out why the code is highlighted, see Finding Out What is Wrong with Your Code .

In the example below, ReSharper warns that the namespace alias is not used inside the current file and highlights it in grey:

In the example below, ReSharper highlights a problem with resolving a method inside an event subscription:

Solution-Wide Analysis

ReSharper does not only analyze errors in the current XAML file, but also inspects all files in the whole solution and shows the results of the analysis in the Errors in Solution window. It takes dependencies between files into account and updates the results when you change code.





ReSharper can find usages of any entity, such as classes, properties, fields, etc. even in XAML. For instance, you can find usages of the FieldModifier class in order to find out which fields are declared as public:

Examples of Context Actions

Convert attribute to nested element


Convert tag to an attribute


Examples of Quick-Fixes

Make field private
To change visibility of a field declared in XAML, use the appropriate quick-fix.

After applying the quick-fix, the value of FieldModifier is changed to private.

Remove redundant namespace alias
To remove a redundant namespace alias, use the appropriate quick-fix.

After applying the quick-fix, the namespace alias directive is removed.

See Also