Configuring P4Admin preferences

To configure settings for P4Admin, choose Edit > Preferences​ (Windows) or P4Admin > Preferences​ (Mac). The Preferences dialog includes the following configuration pages:

Click Applyto save your changes. Click OKto save your changes and exit the dialog.

Connections

You can configure the following settings for connecting to Perforce servers:

When the application launches:

Opening and closing connections:

Logging

You can configure the following logging options:

Log pane options:

Logging to a file:

Display

You can configure the following Administration Tool display and localization options:

Application:

Localization:

Files

You can configure the way the Administration Tool displays files and file icons:

Behavior

You can configure the following Administration Tool user interface behaviors:

Prompts:

Drag and drop:

Tools

You can configure the following Revision Graph and Time-Lapse View options:

Revision Graph:

Time-Lapse View:

Editor

To associate file types with the applications you use to edit them:

  1. Click Add.
  2. Select a file extension from the drop-down list.
  3. Enter or browse for the associated application.
  4. (Optional) Select Always use the selected application to open files of this typeto set the application as the default.
  5. Click Save.

You can enter as many applications as you like for each extension. All of the applications will appear as options when you context-click a file in the Administration Tool and select Open With.

Note

Any application that you’ve used to open a file from the context menu in the Administration Tool appears by default as an associated application on the Editor page in the Administration Tool Preferences dialog, unless you remove it.

Diff

To set the default diff application, select one of the following:

  1. P4Merge:Perforce’s companion diff tool.
  2. Other application: Browse to your preferred diff tool.

    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. Perforce replaces these placeholders with the actual filenames when calling the diff application.

To assign diff applications by file type:

  1. Click Add.
  2. Select a file extension from the drop-down list.
  3. Enter or browse for the associated application.
  4. Specify arguments for third-party diff applications in the Arguments field:

    Enter %1 for the name of the first file and %2 for the name of the second file. The Administration Tool 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.

Applets

You can enable Perforce servers to serve applets that can run in the Administration Tool. In order for these applets to run in the Administration Tool, you must enable applets in your Administration Tool preferences. For more information about Perforce applets, see the Perforce Javascript API for Visual Tools User Guide.

To enable Perforce applets to run in the Administration Tool:

  1. Select Allow Perforce applets to run in P4Admin.
  2. Specify the Perforce servers from which you are willing to accept Perforce applets:

  3. Click Advanced…​ to specify the following settings: