Using the local history

In this section, you will use the local history feature to switch to a previously saved version of a Safe X3 file.

  1. Create a new empty file in a project.
  2. Insert a piece of code to that file using the Safe X3 Editor and commit several changes.
  3. Then right click in the editor and select Replace with > Local history menu item. Compare dialog will be opened.
  4. Select a version (by date and time) of the file you'd like to replace the current content and click Replace

The file has just been restored to the state you selected.

Alternatively, you can use the History view to compare the current file with an older version.

Related concepts

Safe X3 Editor
Local history (Workbench User Guide)