Autoformat code

Is there a way to autoformat my code in the Freecodecamp editor?
VS Code has this feature when the code file gets autoformatted on save.
I would like to find a shortcut on Freecodecamp that allows me to do that.

1 Like

Shift + Alt + F (at least on Windows) or F1 and select “Format Document”.


Thanks for the answer @lasjorg ! I didn’t know there even was a command palette. Amazing!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.