PyCharm 2016.3 Help

Change Markers

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

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

  • /help/img/idea/lineAddedMarker.png line added.
  • /help/img/idea/lineChangededMarker.png line changed.
  • /help/img/idea/lineDeletedMarker.png line deleted.

You can manage changes using the dedicated toolbar. To invoke it, hover the mouse cursor over a change marker and then click it. The toolbar is displayed together with a frame showing the previous contents of the modified line:

/help/img/idea/changeMarkerToolbar.png

You can perform the following operations:

ItemTooltip and ShortcutDescription
Previous Change / Next Change
/help/img/idea/arrowUp.png / /help/img/idea/arrowDown.png
Ctrl+Shift+Alt+Down Ctrl+Shift+Alt+Up Use these buttons to navigate between changes.
Rollback
/help/img/idea/rollback.png
Ctrl+Alt+Z Click this icon to rollback the changes. Note that all changes to the file since its last revision will be reverted, not just the current line.
/help/img/idea/compareIcon.png Show Diff
Ctrl+D
Click this icon to explore the differences between the current and the repository version of the current line in the Diff for Range dialog.
/help/img/idea/copy.gif Copy
Ctrl+C
Click this icon to copy the previous version of the modified line to the clipboard.
/help/img/idea/detailed_diff.png Show Detailed Differences Toggle this icon to change the way differences to modified lines are presented when you click the line changed change marker. If enabled, the differences between the current and the repository version are highlighted in green:
/help/img/idea/highlight_change.png

See Also

Last modified: 23 November 2016