The diff tool is integrated into Code Editor.
Display modes
Code Editor can display files in different diff display modes. This mode has no effect when
comparing two files on disk (dual pane will always be opened in this case). Change the display mode
from the menu.
- No diff
- Open in normal editing mode.
- Single pane
- Differences appear in a single document.
- Single pane with deleted blocks
- Differences appear in a single document with deleted blocks highlighted.
- Dual pane
- Open in two panes with read-only reference (base file) and editable open document.
The Diff base file
When a file is opened in Code Editor, it is opened in diff mode with a base file set for you.
However, you can change the base file used with . The base file is selected in this order:
- Use Generated File
- The default for generated files, this option compares the document with the file generated by
the application generator. This is the generated file before POINTs and BLOCKs are injected into the
file. This option is made available only if the file has been generated.
- Use Repository File
- The default for versioned files, this option compares the document with the file in the
repository for the current SVN version of the file. This option is enabled only if the file is
versioned.
- Use File on Disk
- Compares the document with the contents of the file as it was on disk when the file was opened.
If you select this option again after the file has been opened, the diff data will be refreshed by
comparing the document with the actual content of the file on disk.