Turbo Clean Code is a tool designed to help you clean and organize your Unity project's code. It provides features such as script sorting, statistics display, and customization options to help you identify and refactor long scripts that may be violating the Single-Responsibility Principle (SRP). With Turbo Clean Code, you can quickly identify scripts that are too long and need to be refactored, making it easier to maintain and update your project.
The tool allows you to sort scripts by name, lines count, or path, and display basic statistics about your code, such as the number of scripts, total lines of code, and average lines per script. You can also customize the window themes and state thresholds to suit your preferences.
Turbo Clean Code also includes features such as automatic refresh after saved code edits, allowing you to see changes reflected in the window without needing to manually refresh. Additionally, you can select scripts in the Project window by clicking on the script name button in the Scripts Sorter window, making it easier to quickly select targeted scripts for refactoring.
By using Turbo Clean Code, you can improve the maintainability and readability of your Unity project's code, making it easier to work with and update.
Scripts sorting:
- Sort scripts by name, lines count, or path, in ascending or descending order
- Display basic statistics about your code, including:
+ Scripts number
+ Total lines of code
+ Average lines per script
+ Median
Themes customization:
- Create and customize window themes for script length lines count states
- Default theme includes three parts:
+ Error: Scripts longer or equal to 200 lines, displayed in red
+ Warning: Scripts between 100 lines (included) and 200 lines (excluded), displayed in yellow
+ Log: Scripts less than 100 lines, displayed in white
- Add or remove theme parts, customize their lines count threshold, and displayed icon and colors
- Two built-in themes: Default theme and Another theme
Automatic refresh after saved code edits:
- Changes are reflected in the window after compilation in the Editor
- Reload Window button available for manual refresh when customizing themes or folders selection
Scripts selection in Project window:
- Select scripts in the Project window by clicking on the script name button in the Scripts Sorter window





