Docs Home → MongoDB for VS Code
MongoDB for VS Code Commands用于VS Code命令的MongoDB
On this page本页内容
This document lists the VS Code commands available for MongoDB for VS Code. 本文档列出了可用于MongoDB for VS Code的VS Code命令。To open the Command Palette and execute these commands:要打开“命令面板”并执行以下命令:
Any | Visual Studio Code Menu | View > Command Palette |
MacOS | Keyboard Shortcut | Press Command + Shift + P |
Windows and Linux | Keyboard Shortcut | Press Control + Shift + P |
Enter 在命令调色板中输入mongodb
in the Command Palette to display all of the MongoDB for VS Code commands you can use.mongodb
,以显示所有可以使用的mongodb for 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 MongoDB for VS Code view. 配置一个新连接会在MongoDB for VS Code视图中为“连接”列表添加一个新条目。Select a connection from the list to activate that connection.从列表中选择一个连接以激活该连接。
To learn more about connecting to a deployment, see Connect to Your MongoDB Deployment.要了解有关连接到部署的更多信息,请参阅连接到您的MongoDB部署。
You can configure multiple connections, but only have one active connection open at a time.您可以配置多个连接,但一次只能打开一个活动连接。
Note
|
Shell CommandsShell命令
Run this command from the Command Palette to open a MongoDB Shell connected to your deployment.从命令面板运行此命令,打开连接到部署的MongoDB Shell。
Important
Important
Tip See also:
|
Playground Commands演练场命令
Run these commands from the Command Palette to create and run playgrounds.从“命令面板”运行这些命令以创建和运行演练场。
Playground Results.json 的窗格中显示结果。 |
MongoDB for VS Code View CommandsMongoDB for VS Code视图命令
Run these commands from the Command Palette to manage the MongoDB for VS Code view in the left navigation panel.从Command Palette运行这些命令,以管理左侧导航面板中的MongoDB for VS Code视图。
Show MongoDB |