# Format on accept AI suggestion setting

**URL:** <https://forum.cursor.com/t/format-on-accept-ai-suggestion-setting/28872>\
**Category:** Feature Requests\
**Created:** [November 20, 2024, 3:12pm UTC](https://forum.cursor.com/t/format-on-accept-ai-suggestion-setting/28872 "2024-11-20T15:12:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomchambers2](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tomchambers2/32/12476_2.png) [@tomchambers2](https://forum.cursor.com/u/tomchambers2)\
**Post date:** [November 20, 2024, 3:12pm UTC](https://forum.cursor.com/t/format-on-accept-ai-suggestion-setting/28872/1 "2024-11-20T15:12:20Z")

</div>

Often the chat or generator will write code that isn’t formatted according to prettier (using typescript). I then hit save to run the format on save, which is not a big deal, but it adds an extra step. Perhaps there could be an `editor.formatOnAcceptSuggestion` setting that automatically does this. Or even runs it before putting it into the file so it’s more readable without red lines.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/127254_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:19am UTC](https://forum.cursor.com/t/format-on-accept-ai-suggestion-setting/28872/2 "2026-06-18T10:19:52Z")

</div>

Closed on June 18, 2026, 10:19am UTC


