roslyn:organize_usings_batch
Organize using directives across multiple C# files in a project using file pattern filtering. Preview changes before applying them to ensure proper organization.
Instructions
Organize using directives for multiple files in a project. Supports file pattern filtering (e.g., '.cs', 'Services/.cs'). PREVIEW mode by default - set preview=false to apply changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectName | No | Optional: Project name to process. If omitted, processes all projects in solution. | |
| filePattern | No | Optional: Glob pattern to filter files (e.g., '*.cs', 'Services/*.cs', '*Repository.cs'). Matches against file names, not full paths. | |
| preview | No | Preview mode (default: true). Set to false to apply changes to disk. ALWAYS preview first! |