Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>mongogoNew to Visual Studio Code? Get it now.
mongogo

mongogo

bagonaut

|
23,724 installs
| (0) | Free
Integrates mongo shell into vs code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

mongogo README

This will allow you to configure and run the mongo shell inside of Visual Studio Code on Windows. It will also allow you to send code you have hilighted directly to the shell.

Features

This adds a context menu for .js files that will allow you to run the selected text in the mongo shell. Running the mongo shell will also give you a fully interactive mongo shell terminal in the vs code window.

##Preview MongoGoPreview

Requirements

This extension requires that you have the mongo shell installed somehwere, and have your workspace configured to point at the executable. Also, this means that you need to have a running mongod instance to point the client at. Otherwise, the client will terminate, and the shell will close.

Extension Settings

This extension contributes the following settings:

  • mongoShell.path: Escaped path to mongo.exe shell [MANDATORY]
  • mongoShell.host: --host parameter for mongo shell (optional)
  • mongoShell.port: --port parameter for mongo shell (optional)
  • mongoShell.verbose: --verbose parameter for mongo shell (optional)
  • mongoShell.quiet: --quiet parameter for mongo shell (optional)

If people are comfortable with adding login information that would be logged to a temp file in user space, I can do that. Drop a comment on my github.

Known Issues

Only works on Windows. Includes workaround vscode bug 8429. https://github.com/Microsoft/vscode/issues/8429

Use Issues page to communicate any requests and/or issues. https://github.com/bagonaut/mongogo/issues

Release Notes

Happy path code complete.

0.0.1

Initial release of mongogo

0.0.5

Added Documentation.

0.0.10

Fixed Typos, added some command line args.

0.1.2

Fixed the issue with the console not handling closing properly. It still gets in a messed up state if mongo.exe doesn't connect to a mongod instance.


Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft