ReSharper 2022.3 Help

Code Inspection and Quick-Fixes in HTML

The main ReSharper's code analysis features (for example 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: Error highlighting in HTML code

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: setting the path mapping for resources

Click Set path mapping to open the Path mapping dialog 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: setting the path mapping for resources

You can create as many rules as you need and manage them at any time.

Manage path mapping rules in your web project

  1. Right-click your web project in the Solution Explorer, select Edit project item properties in the context menu.

  2. In the Project Item Properties popup that opens, click Path mapping.

  3. ReSharper will display the Path mapping dialog, where you will see all existing path mapping rules defined in the project. Use the corresponding controls to create, modify and remove the path mapping rules.

Last modified: 08 March 2021