OpenSCAD tip: How to get formatting.

I’ve been diving into learning openSCAD lately, and it has sometimes been a rough road. One thing that has really helped me has been occasionally copying my script into a blank arduino window, letting it auto-format (command-t) , and then pasting it back into openSCAD. The formatting really helps illustrate where the brackets line up. You could do this with many other coding apps (ie not arduino) but that is the one I have handy, and one that most people who print will have installed as well.

Before:

After: