Auto-indent code?


#1

Is there a way for students to auto-indent their code when in text mode? That is, fix the indentation on existing code? I thought I’d seen a way a while ago but now I can’t find it, and I’ve tried searching the site without luck.

If not, are there any favorite tools out there that people would recommend that do a good job? (Yes, I should google first, sorry!)

Thanks,
Alex


#2

Googling leads to this one, which looks more than sufficient: http://jsbeautifier.org

It would be nice to have it built-in to code studio though.


#3

Hi Alex,

Thanks for the feedback! I’ll forward your request to code.org staff.

Frank