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.
(Mac: use for CTRL)
Display Workspace tab in Tree pane |
CTRL+0 |
Display pending changelists |
CTRL+1 |
Display submitted changelists |
CTRL+2 |
Display branches |
CTRL+3 |
Display labels |
CTRL+4 |
Display workspaces |
CTRL+5 |
Display jobs |
CTRL+6 |
Display Depot tab in Tree pane |
CTRL+9 |
Select all objects |
CTRL+A |
Copy text, path of selected file or folder, or contents of selected specification |
CTRL+C |
Diff selected file |
CTRL+D |
Check out file |
CTRL+E |
Find |
CTRL+F |
Close the current window |
CTRL+F4 |
Go to a specification |
CTRL+G |
Display Perforce versioning service information in log window |
CTRL+I |
Lock files |
CTRL+L |
Create new specification |
CTRL+N |
Open a new connection |
CTRL+O |
Print selected item |
CTRL+P |
Revert selected files |
CTRL+R |
Display Administration Tool |
CTRL+SHIFT+A |
Copy depot path of selected file or folder to clipboard |
CTRL+SHIFT+C |
Get latest revision |
CTRL+SHIFT+G |
Show in Stream Graph |
CTRL+SHIFT+M |
Display Revision Graph of selected file |
CTRL+SHIFT+R |
Display Time-lapse Display |
CTRL+SHIFT+T |
Display revision history of selected file/folder |
CTRL+T |
Unlock files |
CTRL+U |
Paste text |
CTRL+V |
Close the current window |
CTRL+W |
Cut text |
CTRL+X |
Redo last edit |
CTRL+Y |
Undo last edit |
CTRL+Z |
Submit selected changelist |
CTRL+S |