Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
ianf-mongodb committed Apr 8, 2024
1 parent 9ec1487 commit 216b4ac
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions source/enable-autocomplete.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Steps

.. step:: Open Settings.json

I. In VSCode, open the command palette:
a. In VSCode, open the command palette:

.. list-table::
:header-rows: 1
Expand All @@ -52,44 +52,44 @@ Steps

.. step:: Add the autocomplete snippet to the ``Settings.json`` file

I. Copy the following code snippet:
Copy the following code snippet:

.. code-block::
.. code-block::

"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
}
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
}

#. Paste the code into the ``Settings.json`` file:
Paste the code into the ``Settings.json`` file:

.. figure:: /images/vsce-add-snippet-json-settings.png
:figwidth: 700px
:alt: Image of a stream connection

.. step:: Test the autocompletion feature

a. In a new playground file connected to your deployment,
type the first two characters of a collection name between the
``("")`` and click the full name to populate the collection name:
In a new playground file connected to your deployment,
type the first two characters of a collection name between the
``("")`` and click the full name to populate the collection name:

.. figure:: /images/vsce-get-collection-auto-complete.png
:figwidth: 700px
:alt: Get collection autocomplete
.. figure:: /images/vsce-get-collection-auto-complete.png
:figwidth: 700px
:alt: Get collection autocomplete

#. You can also autocomplete database names by inputing the first
character of a database name inbetween the ``use("")`` statement:
You can also autocomplete database names by inputing the first
character of a database name inbetween the ``use("")`` statement:

.. figure:: /images/vsce-use-database-auto-complete.png
:figwidth: 700px
:alt: Use database autocomplete
.. figure:: /images/vsce-use-database-auto-complete.png
:figwidth: 700px
:alt: Use database autocomplete

.. tip::
.. tip::

You can press :kbd:`Ctrl` + :kbd:`Space` on your keyboard to
autocomplete a collection name inside of the
``db.getCollection()`` syntax.
You can press :kbd:`Ctrl` + :kbd:`Space` on your keyboard to
autocomplete a collection name inside of the

Check failure on line 91 in source/enable-autocomplete.txt

View workflow job for this annotation

GitHub Actions / TDBX Vale rules

[vale] reported by reviewdog 🐶 [MongoDB.ConciseTerms] 'inside' is preferred over 'inside of'. Raw Output: {"message": "[MongoDB.ConciseTerms] 'inside' is preferred over 'inside of'.", "location": {"path": "source/enable-autocomplete.txt", "range": {"start": {"line": 91, "column": 41}}}, "severity": "ERROR"}
``db.getCollection()`` syntax.

Learn More
----------
Expand Down

0 comments on commit 216b4ac

Please sign in to comment.