ReSharper 2016.1 Help

Code Inspection and Quick-Fixes in HTML

The main ReSharper's code analysis features (e.g. Code Inspections, Quick-Fixes for Code Issues) are also supported in HTML. You can find the detailed information on these features in the corresponding topics of the Code Analysis section.

Here is an example of how ReSharper applies code inspection to validate HTML code and underlines obsolete or non-standard elements and attributes.

ReSharper_by_Language__HTML__Code_Highlighting_02

Path Mapping

As you develop a web application, you deploy it onto a destination server from time to time. However, paths to files in the destination environment may differ from paths in your local environment, which makes analysing paths difficult. To make life easier, ReSharper highlights unknown paths and suggests several quick-fixes:

ReSharper_by_Language__HTML__Path_Mapping_01

Click Set path mapping to open the Path mapping dialog box where you can create and change path mapping rules. Click Ignore or Substitute to specify what kind of rule it should be. Depending on the choice, type a path that should be ignored or a path that should be substituted and a path that is a substitution.
ReSharper_by_Language__HTML__Path_Mapping_02

You can create as many rules as you need and manage them at any time. Open the Visual Studio Properties window for your web project and find the Path mapping property. If some path rules are defined, then its value is Custom, otherwise - Not set. To open the Path mapping dialog, click the nearby button.
ReSharper_by_Language__HTML__Path_Mapping_03

See Also

Last modified: 19 August 2016