Yes, local history can help roll back the changes you make to your source code.
To roll back the changes, perform these steps.
- Right-click the updated source code in the editor.
- From the context menu, select the
Replace with > Local History
command.
The
Compare
dialog box appears. The dialog box lists the date and time of the
changes you saved.
Figure 1.
Compare Dialog Box

- From the
Revision Time
options, select the desired date and time.
- Click the
Replace
button.
The changes made to the file will be roll backed to the selected date and time.
Note:
The local history is maintained for files only and not for projects or folders.