Using Change Markers to View and Navigate Through Changes in the Editor
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:
-
line added.
-
line changed.
-
line deleted.
A special toolbar is associated with each change marker, enabling you to perform the following operations:
-
Navigate between changes using the
and
buttons in the change markers or the Ctrl+Shift+Alt+Down or Ctrl+Shift+Alt+Up keyboard shortcuts. See Navigating between Changes for details.
-
Compare the current version with the last committed one using
.
-
Revert changes using
.
- Put the previous version of the changed lines to the clipboard using
.
To show the change marker toolbar
- Point to the desired change marker. The mouse pointer changes its shape:
- Click the change marker. The toolbar and the previous contents of the line are displayed:
See Also
Last modified: 20 April 2016