Using P4V shortcuts

Drag and drop

P4V supports drag-and-drop shortcuts for common tasks. To enable or disable drag-and-drop file integration or diffing, go to P4V > Preferences (Mac) or Edit > Preferences (Windows) and set the drag-and-drop options on the Behavior page.

  • To add a file to Perforce, drag it from a file browser (such as Windows Explorer) to a pending changelist.

  • To get a file revision at a submitted changelist, workspace, label or file revision, drag the submitted changelist, workspace, label or file revision to the field next to the Get Revision dialog To field.

  • To integrate (merge) files, drag the source folder to the target folder. The Merge/Integrate dialog opens, where you can refine your integration criteria.

  • To label a file, drag a file or a folder to a label. Alternately, drag a label onto a file or folder.

  • To diff two file revisions, drop a file or a file revision onto another file revision. To display file revisions, context-click the file and choose File History.

  • To diff revisions of different files, display the File History for both files, then drag a revision from one window to the other and drop it on the other revision.

  • To diff two folder revisions, drop a folder revision onto another folder revision. To display folder revisions, context-click the folder and choose Folder History.

  • To add files to a pending changelist, drop files onto the pending changelist itself, or onto the Files field of the pending changelist's Submit form.

  • To move a file from one changelist to another, drag files from the source Submit form to the target Submit form. Alternately, choose Display>Pending Changelists, and drag the files from the source changelist to the target changelist.

  • To filter the pending changelists, submitted changelists, labels, or jobs by file path, drag files or folders from the Tree pane to the Filters pane in the specification tab.

  • To add a job to a changelist, drag the job from the Jobs tab of the right pane to the Jobs field of the pending changelist. You cannot attach a job to a submitted changelist.

  • To locate a file in the depot, drag the file from a pending or submitted changelist to the address bar (which is located below the P4V toolbar). Alternatively, copy the depot or workspace path (for example, select a file in a submitted changelist and choose Edit>Copy), then paste the path into the depot or workspace pane.

  • To switch panes, drag any selected object to the toolbar button for the desired pane. For example, to add a job to a submitted changelist, drag the job from the Jobs tab to the submitted changelists button P4V displays the Submitted Changelist tab. Drop the job on the target changelist.

  • For streams drag-and-drop shortcuts, see Using the Stream Graph.

Shortcut keys

P4V supports the default shortcut keys listed below. You can also set up custom shortcuts. Go to P4V > Preferences (Mac) or Edit > Preferences (Windows) and set up your shortcuts on the Shortcuts page in the Preferences dialog.

Action

Mac

Windows

Display Workspace tab in Tree pane

+0

Ctrl+0

Display pending changelists

+1

Ctrl+1

Display submitted changelists

+2

Ctrl+2

Display branches

+3

Ctrl+3

Display labels

+4

Ctrl+4

Display workspaces

+5

Ctrl+5

Display jobs

+6

Ctrl+5

Display Depot tab in Tree pane

+9

Ctrl+9

Select all objects

+A

Ctrl+A

Copy text, path of selected file or folder, or contents of selected specification

+C

Ctrl+C

Diff selected file

+D

Ctrl+D

Check out file

+E

Ctrl+E

Find

+F

Ctrl+F

Close the current window

+F4

Ctrl+F4

Go to a specification

+G

Ctrl+G

Display Perforce versioning service information in log window

+I

Ctrl+I

Lock files

+L

Ctrl+L

Create new specification

+N

Ctrl+N

Open a new connection

+O

Ctrl+O

Print selected item

+P

Ctrl+P

Revert selected files

+R

Ctrl+R

Submit selected changelist

+S

Ctrl+S

Display Administration Tool

+Shift+A

Ctrl+Shift+A

Copy depot path of selected file or folder to clipboard

+Shift+C

Ctrl+Shift+C

Get latest revision

+Shift+G

Ctrl+Shift+G

Show in Stream Graph

+Shift+M

Ctrl+Shift+M

Display Revision Graph of selected file

+Shift+R

Ctrl+Shift+R

Display Time-lapse Display

+Shift+T

Ctrl+Shift+T

Display revision history of selected file/folder

+T

Ctrl+T

Unlock files

+U

Ctrl+U

Paste text

+V

Ctrl+V

Close the current window

+W

Ctrl+W

Cut text

+X

Ctrl+X

Redo last edit

+Y

Ctrl+Y

Undo last edit

+Z

Ctrl+Z