Is it possible to roll back the changes I did to my source code?

Yes, local history can help roll back the changes you make to your source code.

To roll back the changes, perform these steps.

  1. Right-click the updated source code in the editor.
  2. 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

    Compare Dialog Box

  3. From the Revision Time options, select the desired date and time.
  4. 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.