roslyn:format_document_batch
Apply consistent indentation, spacing, and line breaks across multiple documents in a project using Roslyn's NormalizeWhitespace. Preview changes by default; set preview=false to apply.
Instructions
Format multiple documents in a project using Roslyn's NormalizeWhitespace. Ensures consistent indentation, spacing, and line breaks. PREVIEW mode by default - set preview=false to apply changes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "roslyn:format_document_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | Preview mode (default: true). Set to false to apply changes to disk. ALWAYS preview first! | |
| projectName | No | Optional: Project name to format. If omitted, formats all projects in solution. | |
| includeTests | No | Include test projects (default: true). Set to false to skip projects with 'Test' in the name. |