Shortcut for auto format

Hi,

Is there a shortcut in Web Editor to auto format the codes?

I tried to select editor area and press Ctrl+T but Chrome responsed.

It would be really nice if there's a list of all shortcuts available for Web Editor.

Thanks for your help!

As far as I know, Arduino Web Editor doesn't have an auto format feature, even via a menu option. I'd love to be wrong.

We frequently see code posted on the forum that's simply unreadable due to horrible formatting. Before Arduino Web Editor came along, it was always easy to request that the user do an auto format before posting their code. The value of the tool extends beyond readability and aesthetics because quite often the automatic indentation makes it obvious where bugs are.

Hi @tom2013,
we planned to ship this feature next week, stay tuned!

smellai:
Hi @tom2013,
we planned to ship this feature next week, stay tuned!

That would be really exciting! Thank you so much!

It could be even better if you can manage to release a document with all the shortcuts available on web editor! (If there're more shortcuts than Ctrl F and Ctrl H)

Hi Tom there is a list of shortcuts already available.
Just at the bottom of the middle panel where it says TIPS you will see a line about pressing the ALT UP ARROW but clicking on it works too.

OOPS you need to be in PREFERENCES to see that shortcut...sorry about that.
Stick to clicking it as the shortcut seems broken right now :slight_smile:

ballscrewbob:
Hi Tom there is a list of shortcuts already available.
Just at the bottom of the middle panel where it says TIPS you will see a line about pressing the ALT UP ARROW but clicking on it works too.

OOPS you need to be in PREFERENCES to see that shortcut...sorry about that.
Stick to clicking it as the shortcut seems broken right now :slight_smile:

Hi Bob,

I've been looking for this list for really long time! Thank you for the tips! :wink:

You are most welcome.

Sometimes its worth exploring all the buttons and links...
I keep amazing myself at what they have for help.

autoformat available, shortcut: 'ctrl b'

The button is available here: