CLion 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/2016.3/lineAddedMarker.png line added.
  • /help/img/idea/2016.3/lineChangededMarker.png line changed.
  • /help/img/idea/2016.3/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:


You can perform the following operations:

ItemTooltip and ShortcutDescription
Previous Change / Next Change
/help/img/idea/2016.3/arrowUp.png / /help/img/idea/2016.3/arrowDown.png
Ctrl+Shift+Alt+Down Ctrl+Shift+Alt+Up Use these buttons to navigate between changes.
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/2016.3/compareIcon.png Show Diff
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/2016.3/copy.gif Copy
Click this icon to copy the previous version of the modified line to the clipboard.
/help/img/idea/2016.3/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 are highlighted with the corresponding color:

See Also

Last modified: 29 March 2017