中文文档见README-CN.md
uutools
A Rust utility crate for converting variable names from camelCase to snake_case.
Installation
Add the following dependency to your Cargo.toml
file:
[]
= "1.0.0"
Usage
use ctsc;
use batch_convert;
In the example above:
- "input.txt" is the path to the input file containing variable names to be converted.
- "output.txt" is the path to the output file where the converted variable names will be written.
- true indicates that the variable names will be converted to SCREAMING_SNAKE_CASE. Set it to false for camelCase conversion.
Futures
Here are the features and improvements we plan to add to the tool in the future. If you have any suggestions or ideas, feel free to share!
-
Support for Multiple Naming Conventions:
- Add support for other naming conventions such as SCREAMING_SNAKE_CASE.
-
Batch Conversion Feature:
- Allow users to convert multiple variable names at once.
-
Interactive Mode:
- Create an interactive command-line interface for a more intuitive user experience.
-
File Processing Feature:
- Support batch conversion of variable names in files.
-
Custom Rules:
- Enable users to define custom conversion rules.
-
Integration with Editor Plugins:
- Develop editor plugins to allow users to use the conversion tool directly in their editors.
-
GUI Interface:
- Develop a graphical user interface for a more user-friendly experience.
-
History Tracking Feature:
- Keep a record of users' conversion history for easy reference and re-operation.
-
Export Functionality:
- Allow users to export conversion results to files or the clipboard.
-
Error Handling and Logging:
- Implement robust error handling mechanisms and logging capabilities.
If you have any ideas or suggestions regarding the above features, feel free to raise them in the Issues section or directly submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.