Docs Home / Compass / Customize

Interface Settings界面设置

You can customize MongoDB Compass to meet your specific needs on the Compass interface. Some options are only available in the Settings panel.您可以在Compass界面上自定义MongoDB Compass以满足您的特定需求。某些选项仅在“设置”面板中可用。

If you have already configured Compass settings on the command line or in a configuration file, you cannot modify those settings in the Compass interface.如果您已经在命令行或配置文件中配置了Compass设置,则无法在Compass界面中修改这些设置。

Settings Panel Location设置面板位置

To open the MongoDB Compass Settings Panel, click the gear icon on the left column of the Compass home screen.要打开MongoDB Compass设置面板,请单击Compass主屏幕左列上的齿轮图标。

Settings gear icon location on MongoDB Compass UI

Alternatively, you can use keyboard shortcuts to open the Settings panel:或者,您可以使用键盘快捷键打开“设置”面板:

  • Windows / Linux: Ctrl + ,
  • Mac: + ,

Compass opens a dialog box where you can configure your MongoDB Compass settings.Compass打开一个对话框,您可以在其中配置MongoDB Compass设置。

You can also open the the Compass Settings panel when connected to your cluster by doing the following:您还可以在连接到集群时通过执行以下操作打开Compass“设置”面板:

  1. Click the next to your cluster name.单击群集名称旁边的省略号。
  2. Select Compass Settings from the dropdown.从下拉菜单中选择“Compass设置”。

Settings设置

You can configure the following settings on the MongoDB Compass interface:您可以在MongoDB Compass界面上配置以下设置:

Setting设置Category类别Definition定义
Set Read-Only Mode设置只读模式General

Remove all write and delete capabilities on Compass.删除Compass上的所有写入和删除功能。

To learn more, see Restrict Write Operations to MongoDB.要了解更多信息,请参阅限制对MongoDB的写入操作

Enable 启用MongoDB ShellGeneral

Enable or disable the embedded MongoDB Shell on Compass.启用或禁用Compass上的嵌入式MongoDB Shell。

If you select Set Read-Only Mode, Compass automatically disables the Enable MongoDB Shell setting.如果选择“设置只读模式”,Compass会自动禁用“启用MongoDB Shell”设置。

To learn more, see Disable the Embedded MongoDB Shell.要了解更多信息,请参阅禁用嵌入式MongoDB Shell

Protect Connection String Secrets保护连接字符串机密General

Sets all connection strings as read-only. Passwords in connection strings display as *****.将所有连接字符串设置为只读。连接字符串中的密码显示为*****

If protectConnectionStrings is enabled, Compass disables the Edit connection string option and hides the Edit connection string toggle.如果启用了protectConnectionStrings,Compass将禁用“编辑连接字符串”选项并隐藏“编辑连接字符”串切换。

To learn more, see Secure Your Connection String.要了解更多信息,请参阅保护连接字符串

Default Sort for Query Bar查询栏的默认排序General

Defines how Compass sorts documents.定义Compass如何对文档进行排序。

To learn more, see Set Default Sort Order.要了解更多信息,请参阅设置默认排序顺序

Show Kerberos Password Field显示Kerberos密码字段General

Show or hide the Kerberos password field on the Compass connection form.显示或隐藏Compass连接窗体上的Kerberos密码字段。

To learn more, see Display the Kerberos Password Field.要了解更多信息,请参阅显示Kerberos密码字段

Upper Limit for maxTimeMS for Compass Database OperationsCompass数据库操作的maxTimeMS上限GeneralSpecify an upper time limit for all Compass database operations.为所有Compass数据库操作指定上限时间。
Enable DevTools启用DevToolsGeneral

Enable Chrome DevTools.启用Chrome开发人员工具。

To learn more, see Toggle Chrome DevTools.要了解更多信息,请参阅切换Chrome DevTools

Install Compass as URL Protocol Handler将Compass安装为URL协议处理程序General

Register Compass as a handler for mongodb:// and mongodb+srv:// URLs.将Compass注册为mongodb://mongodb+srv://URL的处理程序。

If Install Compass as URL Protocol Handler is enabled, you can open Compass by navigating to a mongodb:// or mongodb+srv:// URL in your browser.如果启用了“将Compass作为URL协议处理程序安装”,则可以通过在浏览器中导航到mongodb://mongodb+srv://URL来打开Compass。

By default, Install Compass as URL Protocol Handler is enabled. You cannot toggle this option on Linux. You can toggle this setting only on Windows or macOS.默认情况下,启用了“将Compass安装为URL协议处理程序”。您无法在Linux上切换此选项。您只能在Windows或macOS上切换此设置。

Show Quit Confirmation Dialog显示退出确认对话框General

Specify whether a confirmation dialog shows when quitting Compass. You can also check the Do not ask again checkbox on the quit dialog to disable this setting.指定退出Compass时是否显示确认对话框。您还可以选中退出对话框上的“不再询问”复选框以禁用此设置。

The quit dialog is also shown when quitting with the keyboard shortcut:ctrl + Q on Windows or cmd + Q on Mac.使用键盘快捷键退出时,也会显示退出对话框:Windows上的ctrl+Q或Mac上的cmd+Q

Show Database and Collection Statistics显示数据库和集合统计信息General

When enabled, MongoDB Compass occasionally calls the dbStats and collStats commands to access storage statistics for a given database or collection.启用后,MongoDB Compass偶尔会调用dbStatscollStats命令来访问给定数据库或集合的存储统计信息。

To help reduce Compass's overhead on your MongoDB deployments, you can disable this setting.为了帮助减少Compass在MongoDB部署上的开销,您可以禁用此设置。

Infer Additional Namespaces from Privileges从权限推断其他命名空间General

When enabled, Compass shows databases and collections implied by your roles and privileges, even if those databases and collections don't exist yet.启用后,Compass会显示您的角色和权限所暗示的数据库和集合,即使这些数据库和集合还不存在。

To avoid seeing these databases and collections, you can disable this setting.为了避免看到这些数据库和集合,您可以禁用此设置。

Sync with OS与操作系统同步ThemeAutomatically switch between light and dark themes based on your OS settings.根据您的操作系统设置自动在浅色和深色主题之间切换。
Light Mode浅色模式ThemeUse a light theme.使用浅色主题。
Dark Mode深色模式ThemeUse a dark theme.使用深色主题。
Enable Automatic Updates启用自动更新PrivacyAllow Compass to periodically check for new updates.允许Compass定期检查新更新。
Enable Geographic Visualizations启用地理可视化PrivacyAllow Compass to make requests to third-party mapping services.允许Compass向第三方地图服务发出请求。
Enable Usage Statistics启用使用情况统计Privacy

Allow Compass to send anonymous usage statistics.允许Compass发送匿名使用统计数据。

To learn more, see Configure Telemetry Options.要了解更多信息,请参阅配置遥测选项

Give Product Feedback提供产品反馈PrivacyAllow our Product team to occasionally reach out for feedback about Compass.允许产品团队偶尔联系Compass以获取反馈。
No Proxy没有代理Proxy Configuration代理配置Do not use a proxy server.不要使用代理服务器。
System Proxy系统代理Proxy Configuration代理配置Specify a comma-separated list of hostnames and IP addresses to exclude from proxying.指定要从代理中排除的主机名和IP地址的逗号分隔列表。
Manual Configuration手动配置Proxy Configuration代理配置

Specify a http://, https://, socks5:// or pac+https:// URL to proxy. You can optionally specify a username and password. You can also specify a comma-separated list of hostnames and IP addresses to exclude from proxying.指定代理的http://https://socks5://pac+https://URL。您可以选择指定用户名和密码。您还可以指定一个逗号分隔的主机名和IP地址列表,以排除代理。

IMPORTANT:重要: If you specify a proxy configuration with authentication options such as a username and password, Compass can't route some network resources, including map data for geographic visualizations, through the proxy.如果您指定了具有用户名和密码等身份验证选项的代理配置,Compass将无法通过代理路由某些网络资源,包括用于地理可视化的地图数据。

Browser command to use for OIDC Authentication用于OIDC身份验证的浏览器命令OIDCSpecify the browser that Compass redirects you to when authenticating with the identity provider.指定Compass在与身份提供程序进行身份验证时重定向到的浏览器。
Show Device Auth Flow Checkbox显示设备身份验证流复选框OIDCShow a check box on the connection form to enable the device authentication flow. This provides the option to enable a less secure authentication flow as a fallback when browser-based authentication is unavailable.在连接表单上显示复选框以启用设备身份验证流。这提供了在基于浏览器的身份验证不可用时启用不太安全的身份验证流作为回退的选项。
Stay logged in with OIDC保持登录OIDCOIDCRemain logged in when using the MONGODB-OIDC authentication mechanism.使用MONGODB-OIDC身份验证机制时保持登录状态。
Enable AI Features启用AI功能Artificial Intelligence人工智能Enables natural language querying and allows the use of AI features in Compass which make requests to 3rd party services.启用自然语言查询,并允许使用Compass中的AI功能向第三方服务发出请求。
Enable sending sample field values启用发送示例字段值Artificial Intelligence人工智能Enables sharing of sample field values with the MongoDB AI provider. This setting can improve responses from natural language querying prompts.允许与MongoDB AI提供程序共享示例字段值。此设置可以改善自然语言查询提示的响应。

Learn More了解更多