This document lists the VS Code commands available for VS Code Extension. To open the Command Palette and execute these commands:本文档列出了可用于VS Code扩展的VS Code命令。要打开命令面板并执行以下命令:
| Any | Visual Studio Code | |
| MacOS | Command + Shift + P | |
| Windows and Linux | Control + Shift + P |
Tip
Enter 在命令面板中输入mongodb in the Command Palette to display all of the VS Code Extension commands you can use.mongodb以显示可以使用的所有VS Code扩展命令。
Connection Commands连接命令
Run these commands from the Command Palette to create new connections or manage existing connections to your MongoDB deployments.从命令面板运行这些命令,以创建新连接或管理与MongoDB部署的现有连接。
Configuring a new connection adds a new entry to your Connections list in the VS Code Extension view. Select a connection from the list to activate that connection.配置新连接会在VS Code扩展视图中的连接列表中添加一个新条目。从列表中选择一个连接以激活该连接。
To learn more about connecting to a deployment, see Connect to Your MongoDB Deployment.要了解有关连接到部署的更多信息,请参阅连接到MongoDB部署。
Note
You can configure multiple connections, but only have one active connection open at a time.您可以配置多个连接,但一次只能打开一个“活动”连接。
| |
|
Shell Commandsshell命令
Run this command from the Command Palette to open a MongoDB Shell connected to your deployment.从命令面板运行此命令,打开连接到部署的MongoDB Shell。
|
Playground Commands游乐场命令
Run these commands from the Command Palette to create and run playgrounds.从命令选项板运行这些命令以创建和运行游乐场。
| |
|
VS Code Extension View CommandsVS Code扩展视图命令
Run these commands from the Command Palette to manage the VS Code Extension view in the left navigation panel.从命令面板运行这些命令,以管理左侧导航面板中的VS Code扩展视图。
|
MongoDB MCP Server CommandsMongoDB MCP服务器命令
Run these commands from the Command Palette to manage the MongoDB MCP server.从命令面板运行这些命令来管理MongoDB MCP服务器。
| |
| |
|