Brad Good | Squarespace Expert, Designer & Developer

View Original

Tidy Up Your HTML, CSS and Javascript

It is always important to maintain tidy code in any project. Squarespace has a hidden shortcut to cleanup any HTML, CSS and Javascript. This shortcut applies to Custom CSS window, Code Injection as well as any Code Block in the site.

Step 1.

Go to any area where you have code to clean up. Select All, then hold Shift, then press Tab. Your code should now look much more readable. Here is a quick before and after.