How to format code?

In VSCode, i can format code by format doc.
How to do it in Observable?

Hi @dacapoday, and welcome to the forum!

Out of curiosity, does this thread respond to your question?

There are a few formatting options for your code in Observable which you can select in your Settings (see attached)

3 Likes

You can also use the shortcut Shift-Option-F to apply code formatting to a cell manually.

Related: