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:
- 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.
- 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:
- 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.
- 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.
- After examining differences between the two versions, use the icons
displayed in the Diff Viewer to make changes:
- Replace (
).
Inserts the highlighted text from the previous revision into the current
revision
- Move All (
).
Reverts the file's current version to the state of the selected previous
version.
- Remove (
).
Removes the highlighted text from the current version so that it mirrors the
previous version.
Any changes made using the Diff Viewer's icons are immediately applied to the
file's current version.
- You can make changes to your current version directly in the graphical Diff Viewer.
To do so, place the cursor directly in the Current Version pane and edit where
appropriate. The current version is instantaneously updated to reflect changes.
- See Also
- About Local File History
- Adjusting Local File History Settings
Legal Notices