# Feature Request: Pretty format keyboard shortcut

**URL:** <https://talk.observablehq.com/t/feature-request-pretty-format-keyboard-shortcut/4033>\
**Category:** Feedback\
**Created:** [October 19, 2020, 5:36pm UTC](https://talk.observablehq.com/t/feature-request-pretty-format-keyboard-shortcut/4033 "2020-10-19T17:36:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![afeierman](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/afeierman/32/3615_2.png) [@afeierman](https://talk.observablehq.com/u/afeierman)\
**Post date:** [October 19, 2020, 5:36pm UTC](https://talk.observablehq.com/t/feature-request-pretty-format-keyboard-shortcut/4033/1 "2020-10-19T17:36:45Z")

</div>

This is a short feature request, and/or a call for others to post their workarounds to this same issue.

My Observable team has auto-pretty formatting off by default, as there are some cases where we find the default pretty format has made our code less readable.

However, in many cases we do still want to auto-format cells. I think it would be intuitive and convenient to have a keyboard shortcut for this kind of thing: perhaps `Alt+Enter` for “Run cell and format code” or “format code in current cell”

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [September 5, 2021, 10:13am UTC](https://talk.observablehq.com/t/feature-request-pretty-format-keyboard-shortcut/4033/2 "2021-09-05T10:13:29Z")

</div>

A shortcut (Shift-Option-F) was added a while ago.

Related:

> <https://github.com/observablehq/feedback/issues/205>
>
> \*\*Describe the bug\*\*
> 
> The shortcut \<kbd\>Shift\</kbd\>-\<kbd\>Option\</kbd\>-\<kbd\>F\</…kbd\> applies Prettier formatting to a cell.
> 
> However, this shortcut is missing from the list of shortcuts in the help flyout, and appears to be undocumented in general.
> 
> \*\*Additional context\*\*
> 
> On 2021-04-23 @wiltsecarpenter \[mentioned\](https://observablehq.slack.com/archives/C01LADG5CF6/p1619197682128300) adding the shortcut for macOS.
