roslyn:format_document_batch
Format multiple C# documents simultaneously to ensure consistent code style, indentation, and spacing across your project using Roslyn's NormalizeWhitespace.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| preview | No | Preview mode (default: true). Set to false to apply changes to disk. ALWAYS preview first! |