How to auto format code?

Hi

How can i outline my code like in arduino (Ctrl + t) ?

Thanks :smile:

2 Likes

Which platform are you referring to?

Discourse (forum), Particle Dev or Web IDE?

I’m using the Web IDE :sunny:

Anyone please ?

I don’t think it’s currently implemented, but it’s definitely something that would be very useful to have. I’m sure it’s on a backlog somewhere, but for the time being, I’m afraid you’ll have to do without. (Ping @suda.)
Since I’ve got the Arduino IDE on my computer anyhow, I just copy&paste it in there, format it and copy&paste it back. Takes about 5 seconds, not too bad.

1 Like

Unfortunately this isn’t available in Build IDE. You can do it in Dev by installing clang-format package.

2 Likes