Code Formatting

Hello, I think it would be great if Retool had some sort of code formatting, possibly based on Prettier. It would definitely help to keep to code neat as some of the queries can get quite long.

Thank you.

Hi Mariusz ๐Ÿ˜Š

Agreed. Would be super helpful with debugging as well.

We do have the SQL formatter (command + L), just in case anyone reading this thread is looking for that!

sql formatting gif

1 Like

Any update on the code formatter?

I upvote this request. It's a vital part for fast coding, which is what retool is made for :wink:

In some code editor, it support โ‡งโŽ‡F (shif+alt+f) to format, but it still no support in event handler script.

Definitely feature should be added :slight_smile:

Thanks, @Dmytro_Bondarenko. I added your +1 to the request