DataGrip 2019.1 Help

Differences viewer for files

Adjust the view by selecting the necessary comparison and highlighting options in the upper part.

Compare files

You can make changes to file contents by typing, and also by using the following buttons and context menu commands:

Button

Command

Description

Replace the fragment in the right-hand pane

Replace

Replace the fragment in the right-hand pane with the one in the left-hand pane.

icons diff arrowRight svg

Replace

The same as the previous command but in the other direction.

Insert the fragment in the left-hand pane

Insert

Insert the fragment in the left-hand pane after the corresponding fragment in the right-hand pane.

(Where appropriate, icon InsertReplace turns into arrowRightDown when you press Ctrl.)

Insert the fragment in the right-hand pane

Insert

The same as the previous command but in the other direction.

(Where appropriate, icon InsertReplace2 turns into arrowLeftDown when you press Ctrl.)

To undo the changes, use Ctrl+Z.