Quick Tip – 17: How to Diff CSS Live Edits in Chrome DevTools

May 16, 2014 | 1 Minute Read

If you're reading my blog I'll assume that you are familiar with how to live edit code within all browser developer tools. I use them all the time and can hardly remember what it was like without them. Chrome DevTools tend to be my favorite but FireFox and Internet Explorer continue to improve.

Chrome DevTools have the best and most complete offering as well as some really great features. One nice feature that I recently learned about is the ability to diff your live edit CSS changes directly from within DevTools.

Here’s How You Do it

When inspecting styles, click the link to the external stylesheet to open it in the “Sources” tab

When inspecting styles, click the link to the external stylesheet to open it in the Sources tab

Edit & Save Styles

Edit some styles and then save them (ctrl + s)

Edit some styles and then save them

Right click within the “Sources” tab content area and select “Local Modifications”

Right click within the Sources tab content area and select Local Modifications

History Panel

This will open the history panel where you can diff your edits

This will open the history panel where you can diff your edits

Found any of this Stuff Helpful?

If you found any this helpful and want to show some love, you can always buy me a coffee!