ReSharper 2016.3 Help

ReSharper by Language JSON

JSON and JSON schema support currently ranges from things as basic as syntax highlighting (including older Visual Studio versions), to more sophisticated features like formatting and rearranging code (for example, you can move object properties or arbitrary selections around), code inspections and quick-fixes, as well as code completion that is aware of schemas, paths, regular expressions and packages.

Code inspection and regular expression completion in JSON files

In this topic:

JSON value helpers

ReSharper allows you to mark some JSON properties as specific value types (e.g. regular expression, file path) so that ReSharper could apply specific validation and provide specific completion suggestions for matching properties in JSON files.

You can add a value helper for specific properties in the Code Editing | JSON | JSON Value Helpers page of ReSharper options. The matching is based on a filename mask and/or schema, and a path to the JSON property (such as /compilerOptions/rootDir).

Your JSON value helpers 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.

Making ReSharper ignore specific code

ReSharper allows you to ignore specific files, folders and file masks in different ways. You can configure ignored files on the following options pages:

Last modified: 12 October 2017

See Also