Skip to content

tidy code

nbriz edited this page Feb 4, 2022 · 3 revisions

In addition to standard code editor features, netnet's editor also has a few extra features aimed at making it easier for beginners and artists to experiment with code, these include realtime editing, friendly error messages, built in references and tidy code (this page). netnet also provides a few different options for saving or sharing your work which fall under two categories, what we call sketches (quick single page works) and projects (works which include other files/assets and are hosted on GitHub)

tidy code

It's not the most radical feature, but inside the my sketch|my project section of the Functions Menu you'll also find the option to tidyCode(). Like syntax highlighting and line numbers, clean and proper code indentation is key to avoiding common mistakes. Seasoned developers know this, but it can be tricky for beginners to keep their code indented properly when they're first getting started. So when things get messy, you can always ask netnet to clean it up for you.

❮❮ back to Sketching index page