Comparing Two Files in the IDE
See Also
- In the Filesystems window, select two files.
Control-click on the second file to select it.
- Right-click and choose Tools
Diff from
the contextual menu to run the diff command.
By default, the graphical two-paned diff viewer displays the two files
side by side with the differences highlighted.
- To change between the graphical diff viewer and the
textual diff viewer, use
the Visualizer combo box:
- Graphical Diff Viewer. (Default) The graphical diff viewer uses background
highlight colors to display the
differences between the two files.
By default, changed lines are highlighted in blue,
added lines are highlighted in green, and removed lines are highlighted in red.
- Textual Diff Viewer. The textual diff viewer shows
you the diff output
in text so that you can copy and paste the output into a file or into an email.
Each time you change a setting in the Visualizer combo box, the diff command
runs again with the new setting.
- To change between the built-in diff engine and the command-line diff
engine, use the Engine combo box:
Each time you change a setting in the Engine combo box, the diff command
runs again with the new setting.
Configuring the Diff Viewer
You can change the default diff settings in the Options window.
To change diff viewer settings:
-
Choose Tools
Options.
-
In the Options window, expand
IDE Configuration
Server and External Tools Settings.
To set your default diff engine and default diff visualizer, select the
Diff Settings node.
Expand the Diff and Merge Types node to set:
-
Diff command options (for example, diff -b)
-
The number of lines of
context around differences in the textual diff viewer
- The default
background highlight colors for changed text in the graphical diff viewer
Legal Notices