You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,10 @@ MongoDB for VS Code makes it easy to work with MongoDB, whether your own instanc
19
19
20
20
MongoDB Playgrounds are the most convenient way to prototype and execute CRUD operations and other MongoDB commands directly inside VS Code.
21
21
22
-
- Prototype your queries, aggregations, and MongoDB commands with MongoDB syntax highlighting and intelligent autocomplete for MongoDB shell API, MongoDB operators, and for database, collection, and field names.
22
+
- Prototype your queries, aggregations, and MongoDB commands with convenient syntax highlighting and intelligent autocomplete for MongoDB shell API, BSON types, MQL operators, aggregation stage snippets, system variables, and for database, collection, and field names.
23
23
- Run your playgrounds and see the results instantly. Click the play button in the tab bar to see the output.
24
24
- Edit documents returned by your playground.
25
25
- Save your playgrounds in your workspace and use them to document how your application interacts with MongoDB.
26
-
- Build aggregations quickly with helpful and well-commented stage snippets.
@@ -64,7 +63,9 @@ If you use Terraform to manage your infrastructure, MongoDB for VS Code helps yo
64
63
## Extension Settings
65
64
66
65
-`mdb.shell`: The MongoDB shell to use (The new `mongosh` or the legacy `mongo`).
67
-
-`mdb.show`: Show or hide the MongoDB view.
66
+
-`mdb.showMongoDBConnectionExplorer`: Show or hide the MongoDB Connection explorer.
67
+
-`mdb.showMongoDBPlaygrounds`: Show or hide the MongoDB Playgrounds explorer.
68
+
-`mdb.showMongoDBHelpExplorer`: Show or hide the MongoDB Help explorer.
68
69
-`mdb.defaultLimit`: The number of documents to fetch when viewing documents from a collection.
69
70
-`mdb.confirmRunAll`: Show a confirmation message before running commands in a playground.
70
71
-`mdb.confirmDeleteDocument`: Show a confirmation message before deleting a document in the tree view.
@@ -79,6 +80,8 @@ If you use Terraform to manage your infrastructure, MongoDB for VS Code helps yo
79
80
80
81
## Additional Settings
81
82
83
+
### Autocomplete
84
+
82
85
_These global settings affect how MongoDB for VS Code provides intelligent autocomplete inside snippets and string literals (off by default). Changing the default configuration may affect the behavior and performance of other extensions and of VS Code itself. If you do not change the default settings, you can still trigger intelligent autocomplete inside a snippet or string literal with `Ctrl+Space`._
83
86
84
87
-`editor.suggest.snippetsPreventQuickSuggestions`: By default, VS Code prevents code completion in snippet mode (editing placeholders in inserted code). Setting this to `false` allows snippet (eg. `$match`, `$addFields`) and field completion based on the document schema for the `db.collection.aggregate()` expressions.
@@ -92,6 +95,12 @@ _These global settings affect how MongoDB for VS Code provides intelligent autoc
92
95
}
93
96
```
94
97
98
+
### Syntax Highlighting
99
+
100
+
The MongoDB playgrounds are JavaScript files, which causes JavaScript syntax highlighting to override any customizations made to the MongoDB syntax colors.
101
+
102
+
Currently, there is no way to resolve this except for turning off semantic highlighting for a current workspace, or for all themes that are being used by setting `editor.semanticHighlighting.enabled` to `false`.
103
+
95
104
## Telemetry
96
105
97
106
MongoDB for VS Code collects usage data and sends it to MongoDB to help improve our products and services. Read our [privacy policy](https://www.mongodb.com/legal/privacy-policy) to learn more. If you don’t wish to send usage data to MongoDB, you can opt-out by setting `mdb.sendTelemetry` to `false` in the extension settings.
0 commit comments