We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9719c0a commit 77ad490Copy full SHA for 77ad490
source/reference/editor-mode.txt
@@ -246,10 +246,20 @@ Using Visual Studio as an External Editor
246
Visual Studio requires a special parameter to work as an external
247
editor. Use ``--wait`` with Visual Studio.
248
249
+Set an environment variable:
250
+
251
.. code-block:: javascript
252
253
export EDITOR="/usr/local/bin/code --wait"
254
255
+You can also set the editor with :ref:`config.set()
256
+<mongosh-shell-settings>`. If Visual Studio is in your ``PATH``, open
257
+:binary:`~bin.mongosh` and run:
258
259
+.. code-block:: javascript
260
261
+ config.set("editor", "code --wait")
262
263
If you use Visual Studio, you can also use the `MongoDB VS Code
264
Extension <https://www.mongodb.com/products/vs-code>`__.
265
0 commit comments