Changes: Track your HTML, CSS, and JavaScript changes
With the Changes tab, track the changes you make to:
- HTML in Sources with enabled Local overrides
- CSS in Elements > Styles or Sources
- JavaScript in Sources
The Changes tab shows changes you made within DevTools. If you reload either DevTools or your page, the changes disappear.
To make DevTools persist changes across page loads, follow the steps in Local overrides.
To make DevTools write changes to your local sources, follow the steps in Edit and save files with Workspaces.
Open the Changes tab
To open the Changes tab:
Press Command+Shift+P (Mac) or Control+Shift+P (Windows, Linux, ChromeOS) to open the Command Menu.
Start typing
changes
, select Show Changes, and press Enter.
Alternatively, in the upper right corner, click Customize and control DevTools > More tools > Changes.
By default, DevTools displays the Changes tab at the bottom of your DevTools window, in the Drawer.
View and understand your changes
To view your changes:
Make changes to your sources:
- HTML: First, enable Local overrides, then make changes in Sources
- CSS in Elements > Styles or Sources
- JavaScript in Sources
Open the Changes tab and select a file in the right-hand side of the tab.
Observe a
diff
output that highlights the following:
The Changes tab pretty-prints the diff
output automatically, so you don't have to scroll horizontally to see the changes in a single line.
Copy CSS changes
If you made changes to CSS in Elements > Styles, you can copy all of them with a single button:
Open the Changes tab and, in the right-hand side of the tab, select the CSS file you made changes to.
Click the Copy button at the bottom of the Changes tab.
Revert all changes made to a file
To revert changes made to a file:
- On left-hand side of the Changes tab, select a file with changes to revert.
- On the action bar at the bottom, click Revert all changes to current file.