对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

通过VS Code连接到集群

To connect to a cluster with VS Code, copy your connection information from Atlas and use it to connect using VS Code. You can connect to a standalone, replica set, or sharded cluster host.

查找并复制部署的连接信息:

1
  1. 如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含所需项目的组织。

  2. 如果尚未显示,请从导航栏的Projects菜单中选择所需的项目。

  3. 在侧边栏中,单击 Database 标题下的 Clusters。

会显示集群页面。

2
  1. 从集群列表中找到要连接到的集群。

  2. 单击集群名称右侧的 Connect 按钮。

将出现一个 Connect 对话框,其中包含可用连接方法的列表。

3

按照 Connecting with MongoDB for VS Code(与 MongoDB for VS Code 连接)下的说明创建与集群的连接。

For instructions on creating a connection to your cluster using VS Code, see Connect to Your MongoDB Deployment in the MongoDB for VS Code documentation. If you copied your Atlas connection string in the previous procedure, follow the steps to use your Atlas connection string.

提示

连接到 MongoDB 部署页面还提供有关断开部署连接的信息以及有关激活、重命名和删除连接的信息。