Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 1.53 KB

readme.md

File metadata and controls

13 lines (7 loc) · 1.53 KB

obsolete JetBrains project

Sample Patterns for ReSharper

This repository contains a set of sample Structural Search and Replace (SSR) patterns for ReSharper 8 and 9.0 (9.1 will be added after 9.1 has been released). SSR patterns allow you to declaratively add warnings and highlights to ReSharper's code analysis.

The patterns are intended to be edited in ReSharper's SSR dialog, and the .dotSettings file in this repo is not human readable.

You can load this file into ReSharper using the Extension Manager (ReSharper → Extension Manager). Simply search for "sample patterns". The extension simply adds a settings file as a layer in the Manage Options dialog (ReSharper → Manage Options). The dialog allows enabling or disabling the settings file, which enables or disables the patterns.

In other words, the sample patterns are stored in a separate settings file - [patterns/patterns.dotSettings](patterns/patterns.dotSettings]. When installed as an extension, the settings file is loaded as a read-only "layer", meaning the settings in the file are merged into the global settings, and available to use. They can be edited, and any changes are stored in the user's settings, overriding the values from the extension. See this help page for more details on settings layers.

You can edit the patterns via the main Options → Patterns dialog page.