ReSharper 2016.2 Help

Code Style Assistance in XAML

ReSharper provides a lot of features for keeping your code neat and clean.
Being tightly interwoven with the majority of other ReSharper's features, they help you produce code and
change existing codebases according to the specific code style.
The code style, which includes naming standards, formatting rules,
and many other tiny aspects
can be configured to a very detailed level and shared across your team.

Your code style preferences are saved using the mechanism of
shared settings.
Among other things, this mechanism allows you to maintain different preferences for different solutions
as well as to keep these preferences under a VCS and automatically share them with your team members.

Similarly to other languages, all XAML code style preferences can be applied in the desired scope
with a single command using either
Fix in scope or
Code cleanup.

ReSharper provides the following code style assistance features in XAML:

Naming Style

ReSharper helps you define, control, and apply naming style for symbols in your code.
Naming style is implemented as a set of rules,
each of which targets specific identifiers with the set of constraints
(e.g. a rule can target static private readonly fields) .
Each rule can have one or more associated styles that define suffixes, prefixes,
capitalization of compound words, etc.

For more information on configuring and applying naming style, see
Naming Style

Code formatting rules

An important aspect of code style is how to format the code, i.e. how to use whitespaces and blank lines to
arrange and separate code blocks, whether and how to use tabs for indents, whether and how to wrap long
lines, etc.

The extensive set of ReSharper code formatting rules has a default configuration
that takes into account default
Visual Studio formatting options as well as numerous best practices.

Collapsing empty tags

With ReSharper, you can collapse empty tags in the selection, document or any other scope up to the entire
solution.
To collapse empty tags,
run code cleanup
in the desired scope with the 'Full Cleanup' profile or
create a custom cleanup profile
and tick the
Collapse empty tags
check box in the
XAML
section of the profile settings.