| name | code-formatter |
| description | 格式化源代码文件,支持Python、JavaScript、JSON等语言,使用行业标准格式化工具。 |
| metadata | {"short-description":"格式化源代码"} |
| source | {"repository":"https://github.com/psf/black","license":"MIT"} |
Code Formatter Tool
Description
Format source code files using industry-standard formatters like Black for Python, with support for multiple languages.
Trigger
/format command
- User needs to format code
- User wants consistent code style
Usage
python scripts/code_formatter.py file.py
python scripts/code_formatter.py file.py --line-length 100
python scripts/code_formatter.py config.json
python scripts/code_formatter.py file.py --check
python scripts/code_formatter.py ./src/ --recursive
Tags
format, code, python, black, style
Compatibility