Configuring P4V Preferences

To configure settings for P4V, choose Edit>Preferences... The Preferences dialog is displayed. You can specify the following settings.

General tab

Connection tab

When the application launches: Specify how the active server and workspace are displayed when you start P4V:

When connecting to a server: Specify password and login preferences.

Unicode servers: Specify settings when connecting to servers running in Unicode mode.

Set encoding for all connections to: Choose the default encoding to be used for connections to Unicode servers. Note that, when you choose Connection>Open Connection... and connect to a Unicode mode server, you can specify the encoding for that specific connection.

Data retrieval: You can specify how much data P4V processes during your session.

Editor tab

Enables you to specify the editor to be launched for specific file types. You cannot pass command-line arguments directly to such editors. To invoke editors using command-line arguments, create a script and specify it as the editing application for the file type you are configuring.

To assign an editor to specific file types:
  1. Click Add.
  2. In the Extension pull-down menu, either type in the extension or select it from the list.
  3. In the Application field, browse to the program to use to edit files with that extension and click Open.
    Note: If you know the path to the application, you can also type it into this field.
  4. Click Open. The extension and associated application are displayed in the list of editors.
  5. If you want P4V to always use this application for this file extension, click the Always use the selected application to open files of this type checkbox. Once this is checked, you can double-click a file of that extension and P4V will use that editor to open it.
  6. Click Save.
  7. If you wish to change an application association, select it from the list and click Edit.... If you would like to remove it, click Remove.
  8. Click OK to save your entries.

Diff tab

Enables you to specify the default diff application and to assign diff applications to specific file types.

To assign a default diff application:
  1. Select one of the following options:
  2. Click OK to save your entries.
To assign diff applications by file type:
  1. Click Add... The Add File Type dialog is displayed.
  2. In the File field, enter the extension or choose it from the list.
  3. In the Application field, click Browse, browse to the desired program and click Open.
  4. To specify arguments for third-party diff applications, enter %1 for the name of the first file and %2 for the name of the second file in the Arguments field. P4V replaces these placeholders with the actual filenames when calling the diff application.

  5. Click Save. The extension and associated application are displayed in the list of file type-application associations.
To change a diff application association, click Edit.... To remove it, click Remove.

Merge tab

Enables you to specify a default application for P4V to use when merging files and to assign merge applications to specific file types.

To assign a default merge application:

  1. Select one of the following options:
  2. Click OK to save your entries.

To assign merge applications by file type:

  1. Click Add... The Add File Type dialog is displayed.
  2. In the File field, enter the extension or choose it from the list.
  3. In the Application field, click Browse, browse to the desired program and click Open.
  4. To specify arguments for third-party merge applications, enter the following replaceable parameters in the Arguments field:

    P4V replaces these placeholders with the actual filenames when calling the merge application.

  5. Click Save. The extension and associated application are displayed in the list of file type-application associations.

To change a merge application association, click Edit.... To remove it, click Remove.

Font tab

Enables you to specify which font P4V uses for viewing files within P4V.

To choose a specific viewing font:

  1. Use the pull-down menus to select the Font, Font Style, and font Size.
    Note: You will see a preview of the font that you have selected in the Sample field.
  2. If you wish to return to the default font, click Reset.
  3. Click OK to save your selections.