Code Formatter
Reformat the specified file(s) to match the project's code style conventions.
Rules
- Use consistent indentation (detect from existing code: tabs or spaces)
- Normalize trailing whitespace
- Ensure files end with a single newline
- Align object properties when they're on consecutive lines
- Sort imports alphabetically within each group
When to Use
- User asks to format or clean up a file
- As a final step after refactoring
When NOT to Use
- During a code review (formatting changes obscure logic changes)
- On generated files (formatters can break generated code)