Child pages
  • Code Rewriting Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Servoy keeps a record of all saved changes to a file.

To access and review previous versions of a script:

  1. Use the Compare With command towards the bottom of the context menu in Script Editor. A file revision history will be shown on the right History view, with the last saved dates and times.
  2. Double-click on your desired save date/time. The Script Editor will show a split pane window containing the current and previous versions, along with change indicators and navigational buttons to assist you in reviewing changes.
  3. Use the buttons on the top right of the comparison editor window to scroll through and make changes to the original file: ## Copy all non-conflicting differences from right to left.
    1. Copy current (selected difference) from right to left
    2. Next difference (scrolls through line differences)
    3. Previous difference
    4. Next change (jumps to actual character or piece of code that changed within a difference)
    5. Previous change
  4. Save the file and close the compare window.

_

Info
titleNote:

{_}All changes made in the left pane will be reflected in all open instances of the file (ie, the existing editor screen), even without saving.

To go straight to replacing the existing code with the last saved version, select :

  • Select Replace With-->Previous From Local History from the context menu

...

  • . The editor window will revert to the last saved version.

*To review and replace the existing code with a previously saved file:*

  1. Select Replace With-->Local History. A Compare Window will appear.
  2. Double-click on the desired date/time for the file you would like to replace the current version.
  • A split pane will appear highlighting the changes. Image Added
  1. Review the changes using the navigational buttons provided.
  2. Click on Replace to complete the replace process.
    Info
    titleNote:

    in the Replace With mode, there is no option to replace each change individually).