Reverting a File to a Previous Version

See Also

The IDE's local history functionality enables you to revert your current file to a previous version.

There are two ways to revert a file's current version to any previously stored version:

If you already know the version you want to revert to, you can use the Revert To dialog box.

To revert a file using the Revert To dialog:

  1. From the Projects or Files window, right-click the file you want to revert changes to and choose Local History > Revert to. The Revert To dialog box opens, enabling you to select a version from the provided table.
  2. From the table, select a row corresponding to the version you want to revert changes to, then click Revert. The current state of the selected file is reverted to the state of the selected version.

If you want to examine a previous version and revert only specific changes in your current file to areas within that version, you can perform a side-by-side comparison between the two versions in the Diff Viewer, and revert changes in your current file based on the comparison.

To revert changes in a file using the Diff Viewer:

  1. From the Projects or Files window, right-click the file you want to revert changes to and choose Local History > Show Local History. The graphical Diff Viewer opens.
  2. Select a version from the table displayed in the upper area of the viewer. The selected version displays on the left side in the Diff Viewer below and is compared against your current version.
  3. After examining differences between the two versions, use the icons displayed in the Diff Viewer to make changes: Any changes made using the Diff Viewer's icons are immediately applied to the file's current version.
See Also
About Local File History
Adjusting Local File History Settings

Legal Notices