https://github.com/lofcz/class_spliter
A tiny Roslyn program for splitting long classes into shorter, partial classes. Make your IDE snappy again!
https://github.com/lofcz/class_spliter
roslyn utility
Last synced: about 1 month ago
JSON representation
A tiny Roslyn program for splitting long classes into shorter, partial classes. Make your IDE snappy again!
- Host: GitHub
- URL: https://github.com/lofcz/class_spliter
- Owner: lofcz
- License: mit
- Created: 2025-03-24T15:28:20.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-04-12T14:03:55.000Z (6 months ago)
- Last Synced: 2025-08-25T08:31:38.352Z (about 1 month ago)
- Topics: roslyn, utility
- Language: C#
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Class Splitter
A tiny Roslyn-based utility for splitting long C# classes into shorter ones. Pass a path to the file/files/directory with classes and optionally the LOC limit, which should not be exceeded (defaults to 1 500). The input files will then be split (if needed) into multiple partial classes named `FileName2.cs`, `FileName3.cs`, etc. If the file `FileName2.cs` already exists, we check for the first free index and number starting from it.
```
Usage:
Splitter [options]Options:
-f, --file A single C# file to split.
-l, --files A list of specific C# files to split.
-d, --directory A directory containing C# files to split.
-r, --recursive Process files in subdirectories when using --directory. [default: False]
-m, --max-lines Maximum number of lines allowed per generated file. [default: 1500]
--version Show version information
-?, -h, --help Show help and usage information
```