On this page本页内容
MongoDB for VS Code is currently available as a Preview in the Visual Studio Marketplace.MongoDB for VS Code目前在Visual Studio Marketplace中作为预览版提供。The product, its features, and the corresponding documentation may change during the Preview stage.在预览阶段,产品、其功能和相应的文档可能会更改。
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命令。
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
|
Run this command from the Command Palette to open a MongoDB Shell connected to your deployment.从命令面板运行此命令,打开连接到部署的MongoDB Shell。
Important
Important
Tip
|
Run these commands from the Command Palette to create and run playgrounds.从命令选项板运行这些命令来创建和运行演练场。
| |
|
Run these commands from the Command Palette to manage the MongoDB for VS Code view in the left navigation panel.从命令面板运行这些命令,以管理左侧导航面板中的MongoDB for VS Code视图。