As you modify a file that is under version control, all changes are highlighted in the editor with the change markers that appear in the left gutter next to the modified lines, and show changes introduced since the most recent synchronization with the repository. On committing a file to the repository, the change markers disappear.

The changes you introduce to the text are color-coded:

  • lineAddedMarker line added.
  • lineChangededMarker line changed.
  • lineDeletedMarker line deleted.

A special toolbar is associated with each change marker, enabling you to perform the following operations:

  • Navigate between changes using the arrowDown.png and arrowUp.png buttons in the change markers or the ⌃⌥⇧↓ or ⌃⌥⇧↓⌃⌥⇧↓ or ⌃⌥⇧↓⌃⌥⇧↓ or ⌃⌥⇧↓^ ⇧ ⌥ Down, ⌃⌥⇧↓ or ⌃⌥⇧↓^ ⇧ ⌥ Down, ⌃⌥⇧↓ or ⌃⌥⇧↓ or ⌃⌥⇧↑ or ⌃⌥⇧↑⌃⌥⇧↑ or ⌃⌥⇧↑⌃⌥⇧↑ or ⌃⌥⇧↑^ ⇧ ⌥ Up, ⌃⌥⇧↑ or ⌃⌥⇧↑^ ⇧ ⌥ Up, ⌃⌥⇧↑ or ⌃⌥⇧↑ keyboard shortcuts. See Navigating between Changes for details.
  • Compare the current version with the last committed one using compareIcon.
  • Revert changes using reset.
  • Put the previous version of the changed lines to the clipboard using copy.
To show the change marker toolbar
  1. Point to the desired change marker. The mouse pointer changes its shape:

    changeMarkerPointer.png
  2. Click the change marker. The toolbar and the previous contents of the line are displayed:

    changeMarkerToolbar.png