Cleaning Up Your Code

So when I first starting working through my website code, I had a really hard time keeping the code organized. I wouldn’t indent or line anything up. It looked something like this:

Screen Shot 2013-10-30 at 8.14.05 PM

 

 

 

Not cute, right?

 

Luckily, I discovered SUCH an easy way to clean up the code. All you have to do is go to the Command tab and click Apply Source Formatting (as shown in the photo below).

Screen Shot 2013-10-30 at 8.19.11 PM

 

 

Once you do that, your code looks much cleaner and is SO much easier to navigate through. Your code should look something like this after you apply the source formatting:

Screen Shot 2013-10-30 at 8.21.08 PM

 

Much better, right? So simple, but can really help you make sure that you are closing all your brackets, adding the backslashes, etc.

Happy coding!

SG

 

Advertisements

One thought on “Cleaning Up Your Code

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s