File and Folder Compare Shortcuts

This section provides the keyboard shortcuts that can be used to speed-up your work with file and folder comparison: to quickly merge your code, navigate between different code blocks, and switch between code comparison panes.

File Compare Shortcuts

When comparing different files, Code Compare allows you to use the following shortcut keys:

Command Keyboard shortcuts Action
FileCompare.ActivateFirst Ctrl+1 Activate the first comparison pane.
FileCompare.ActivateFirstPath Ctrl+Shift+1 Activate a path in the first comparison pane.
FileCompare.ActivateSecond Ctrl+2 Activate the second comparison pane.
FileCompare.ActivateSecondPath Ctrl+Shift+2 Activate a path in the second comparison pane.
FileCompare.ActivateThird Ctrl+3 Activate the third comparison pane.
FileCompare.ActivateThirdPath Ctrl+Shift+3 Activate a path in the third comparison pane.
FileCompare.NextChange Alt+Down Move to the next difference.
FileCompare.PreviousChange Alt+Up Move to the previous difference.
CodeCompare.ReplaceToRight Alt+Right Arrow Move a text block to the right.
CodeCompare.ReplaceToLeft Alt+Left Arrow Move a text block to the left.

Folder Compare Shortcuts

To conveniently compare folders, you can use the following shortcuts:

Command Keyboard shortcuts Action
FolderCompare.ActivateFirst Ctrl+1 Activate the first comparison editor.
FolderCompare.ActivateFirstPath Ctrl+Shift+1 Activate a path in the first comparison editor.
FolderCompare.ActivateSecond Ctrl+2 Activate the second comparison editor.
FolderCompare.ActivateSecondPath Ctrl+Shift+2 Activate a path in the second comparison editor.
FolderCompare.CollapseAll Ctrl+Num / Collapse all nodes.
FolderCompare.CopyPath Ctrl+Shift+C Copy a folder path.
FolderCompare.Delete Del Delete a folder or a file.
FolderCompare.ExpandAll Ctrl+Num * Expand all nodes.
FolderCompare.OpenFirstFolder Ctrl+O, 1 Open the first folder.
FolderCompare.OpenSecondFolder Ctrl+O, 2 Open the second folder.
FolderCompare.RefreshSelected Shift+F5 Refresh a selected item.
FolderCompare.Rename F2 Rename a folder or a file.
FolderCompare.SelectAll Ctrl+A Select all files in a folder.
CodeCompare.InvertSelection Alt+Num / Select the unselected items and deselect the selected ones.
CodeCompare.ReplaceToRight Alt+Right Arrow Move a file to the right.
CodeCompare.ReplaceToLeft Alt+Left Arrow Move a file to the left.

You can easily customize user shortcuts: assign a custom shortcut key for a command, determine or remove an existing one. For more details about this, refer to the How to Customize User Shortcuts article.