Auto Formatting in the Editor

I like having formatted code, and the option baked into Retool is wonderful.

I see that there is a hotkey shown, but no combination of shift, alt, ctrl, and F worked to trigger formatting. I prefer hotkeys when available, so I would love for this bug to be fixed.

image

Back to feature request idea:

Can we get a setting that would enable automatic formatting?

We could hook into the "save" logic and trigger formatting in one step. I compulsively meta + s so having it format at the same time would be heaven.

99% of the time I am formatting my code as the final touch before moving on.

2 Likes

Hi @khill-fbmc - What version of Retool are you running? Are you on cloud? I was able to successfully format a JS snippet on 3.95 using the shift + option + F shortcut.

As for automatic code formatting, I'll file a feature request with the team!