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.在预览阶段,产品、其功能和相应的文档可能会更改。
Documents are individual records in a MongoDB collection and are the basic unit of data in MongoDB.文档是MongoDB集合中的单个记录,是MongoDB中数据的基本单位。
You can use a MongoDB Playground to perform CRUD (create, read, update, and delete) operations on documents in a collection on a connected deployment.您可以使用MongoDB 演练场对已连接部署上的集合中的文档执行CRUD(创建、读取、更新和删除)操作。
Use the MongoDB CRUD Operators and shell methods to interact with your databases in MongoDB Playgrounds.使用MongoDB CRUD运算符和shell方法与MongoDB演练场中的数据库进行交互。
Before you can create, read, update, and delete documents using a MongoDB Playground, you must open one.在使用MongoDB演练场创建、读取、更新和删除文档之前,必须先打开一个演练场。
In Visual Studio Code, press one of the following key combinations:在Visual Studio Code中,按以下组合键之一:
The Command Palette provides quick access to commands and keyboard shortcuts.命令面板提供对命令和键盘快捷键的快速访问。
Use the Command Palette search bar to search for commands.使用命令面板搜索栏搜索命令。All commands related to MongoDB for VS Code are prefaced with MongoDB:.所有与MongoDB for VS Code相关的命令都以MongoDB:起头。
When you run the MongoDB: Create MongoDB Playground command, MongoDB for VS Code opens a playground pre-configured with a few commands.运行MongoDB: Create MongoDB Playground命令时,MongoDB for VS Code会打开一个预先配置了几个命令的演练场。
You can load new Playgrounds without the template by disabling the Use Default Template For Playground setting.通过禁用“对演练场使用默认模板”设置,可以在不使用模板的情况下加载新的演练场。To learn more about MongoDB for VS Code settings, see MongoDB for VS Code Settings.要了解有关MongoDB for VS Code设置的更多信息,请参阅MongoDB for VS Code 设置。