ReSharper 2023.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

JSON value helpers

ReSharper allows you to mark some JSON properties as specific value types (for example 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 on 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 layer-based 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.

Make ReSharper ignore specific code

To exclude parts of your solution's code from code analysis, navigation, and other features, ReSharper allows you to ignore specific files, folders and file masks in different ways.

To improve performance, ReSharper also automatically detects and starts ignoring large web files that have no references and were probably added to the solution by mistake.

If any of such files are detected, you will see a notification where you can stop ignoring any of those files if you need them. You can also find all automatically ignored files on the Code Editing | Third-Party Code page of ReSharper options .

To stop auto-detection and ignoring large unused web files, clear the Search for web files that can affect performance and exclude them from indexing checkbox on the Code Editing | Third-Party Code page of ReSharper options .

Last modified: 18 March 2024