# Perforce 选项对话框

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/clion/llms.txt).

> **TL;DR**
> `文件 | 设置 | 版本控制 | 配置 | Perforce`  适用于 Windows 和 Linux
>
>
>
> `%instance% | 设置 | 版本控制 | 配置 | Perforce`  适用于 macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `⌘ Comma` (Xcode), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (ReSharper), `⌘ Comma` (ReSharper (macOS)), `Ctrl+Alt+S` (QtCreator), `⌘ Comma` (QtCreator (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))
>
>
>
> ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)

在此对话框中，配置与指定 Perforce 服务器的连接。

|  项  |  描述  |
| --- | --- |
|  Perforce 在线  |  选中此复选框以启用与 Perforce 服务器建立连接。    如果有连接但服务器没有响应（例如，因为服务器当前正在备份），您可以通过清除此复选框来禁用此类尝试，或者 CLion 将在超时后建议这样做。 接下来，版本控制相关操作将被禁用。     |
|  使用 P4CONFIG 或默认连接  |  使用 P4CONFIG 环境变量中的服务器信息和用户凭据或默认的 Perforce 客户端连接。 否则，请指定端口、用户、客户端和密码。  |
|  Charset  |  选择与服务器上设置的字符集相对应的字符集。  |
|  将 Perforce 命令转储到  IDEA_Home\bin\p4.output   |  将 Perforce 命令记录在指定文件中。  |
|  使用登录认证  |  切换身份验证。  |
|  尝试静默登录  |  跳过提示对话框。 此选项在需要登录身份验证时有效。  |
|  使用原生 Perforce API  |  使用特殊库加速与服务器的连接。  |
|  P4 可执行文件的路径  |  指定 Perforce 客户端可执行文件的路径。  |
|  测试连接  |  请确保已建立与 Perforce 服务器的连接。  |
|  显示分支历史  |  在显示文件历史记录的对话框中查看文件的分支。    当您使用多个分支时，建议启用此选项，以便正确显示文件分支。     |

