ReSharper Cleanup Code
resharper_cleanupRuns ReSharper code cleanup on specified C# files to fix formatting, code style, unused usings, var usage, modifier order, and braces in place; include every modified file in one call.
Instructions
Run ReSharper code cleanup to format files in place, fixing formatting, code style, unused usings, var usage, modifier order and braces. Each call loads the files' projects and their references before it rewrites anything, so make one call per task with every modified file in it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | File paths to clean up. Each is relative to the solution root, or absolute. jb matches them against the files that belong to a project in the solution, so one that is on disk but in no project matches nothing, which nothing here can detect. Wildcards are allowed and expanded by jb; a non-wildcard path that does not exist fails the whole call before anything is rewritten. An element joining several paths with ; or , is split into separate paths. | |
| profile | No | ReSharper cleanup profile name. Defaults to the profile the solution declares, else full cleanup. | |
| solutionPath | No | Path to the .sln, .slnx or .slnf to run against. Overrides JB_SOLUTION_PATH and working-directory discovery. |