Back to Hooks

format-on-save

PostToolUse

Automatically format code files after they are edited or written.

Details

Category
automation
Event
PostToolUse
Matcher
Edit|Write
Language
bash

Tags

formatting
automation
code-quality

Implementation

Run prettier or language-specific formatter after file edits to maintain consistent code style.