Skip to content

MongoDB for VS Code

MongoDB for VS Code lets you easily work with MongoDB directly from your VS Code environment. Using the MongoDB extension, you can:

  • Connect to a MongoDB instance or cluster
  • Navigate your databases and collections
  • Prototype queries and aggregations

You can install the MongoDB extension from inside of VS Code via the VS Code Extension Marketplace. Help us improve the MongoDB for VS Code by posting your ideas and suggestions for improvements.


To report bugs, please use our VSCODE JIRA project.

61 results found

  1. Confirm save

    Add a confirmation, when you save an edited document

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  2. replica sets

    add support of MongoDB replica sets in ADS

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Connectivity  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  3. List the documents in reverse order

    Usulally I need to examine the last created document but in Mongo DB for VS Code in Connections braouser they are presented in ascending order (according to default index "_id : 1).
    Please add option for the the documents to be listed in the descending order!

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  4. Allow to spin up docker container with playground DB directly from VS Code

    When a docker installation is detected on the system, allow to directly spin up a new mongoDB in docker and connect to it.

    When that option is chosen automatically create a new container with the mongodb:latest docker image, a fixed username (e.g. "dev") and a random 16 chars password
    When the port 27017 is already in use, ask the user which port the container should bind.
    Then add the connection to the connections list, connect immediately and open the connection's tree item first hierarchy so I can start adding a database on the server

    I want to be able to…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  5. Add ability to go from Extended JSON to JS and vice-versa.

    It would be nice to have a way to take an expression in EJSON and convert it to "plain" JS.

    The motivativation is that sometimes we get large blocks of aggregation pipelines already in EJSON, but want to express them as JS code without EJSON, or vice-versa.

    A command / shortcut / refactor method to highlight some text that is in format A and convert to format B would be nice.

    {x: {$ne: {"$objectid": "AAAAAAAABBBBBBBBCCCCCCCC"}}}
    
    -------------^^^^^^^^^^^^^^^^^^ "Convert From EJSON..."
    {x: {$ne: ObjectId("AAAAAAAABBBBBBBBCCCCCCCC") }}
    
    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  6. Enable simple and easy Connection with Mongoose or other ODM without the use of Code

    it would be nice to be able to use the VScode extension when building MERN stack projects by easy connection between mongoose and the extension

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Connectivity  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  7. Query delimiter lines in playgrounds

    Much like the REST Client extension allows you to add delimiters (in their case three or more #) between requests, it would be good if this extension offered something similar so that you can easily run individual queries or sets of queries in files containing multiple. So my playground looked something like below, clicking the play button when the mouse cursor is above the delimiter executes the first statement and when below the second.

    use('db1')
    db.collection1.find({})

    //////

    use('db2')
    db.collection2.find({})

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  8. Add directConnection=true for advanced connection settings options

    Please add directConnection=true for advanced connection settings options coz i cannot connect to server with mongoDB

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Connectivity  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  9. Create new document, View documents

    Buttons to quickly create new documents and view all documents in the panel (next to the refresh and search buttons) and ability to assign shortcut keys.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  10. Driver templates in VSCode

    It would be great if the VSCode Extension automatically generated boilerplate code (JS, Java, Python, C#, Go) based on the file type.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  11. Connection & DB colors

    please add connection and database coloring which applies to explore list, opened tabs and playground files. Intellij and Navicat both support this feature which prevents any confusion about test and deployment server.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  12. Better Failed to Connect Error Message

    Currently, I get Failed to connect: connection <monitor> to X.Y.Z.W:27017 closed. It would be helpful to tell the user why that is or give a hint as to why the problem occurred. I have to keep it in the back of my mind that most of the time the issue is because my IP changed and my atlas doesn't have my ip whitelisted.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Atlas  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  13. Improvements to Terminal Shell (split)

    It would be nice that When the VSC extension is added, it creates an entry in the integrated terminal settings (terminal.integrated.automated.windows/mac) like: -

    "MongoDB": {
    "path": "mongo",
    "args": ["$Env:MDBCONNECTIONSTRING"]
    }

    Which I can't currently get to work.

    So that when I split a currently connected MongoDB intergrated terminal session, it spawns another mongo session with the same connection parameters at the same level.

    Also at the moment $Env:MDBCONNECTIONSTRING only seems to be set when the MongoDB:Launch MongoDB Shell is run, not when a connection is made to the a MongoDB server (connections).

    At the moment, if…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  Shell  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  14. Handle 64bit numbers correctly

    Javascript doesn't support 64bit internally, so if I try in Chrome/console: x = 285870311191169181, it becomes 285870311191169180, and the same thing happens in VS Code.
    The solution would be to return a NumberLong("285870311191169181") text result.
    In fact, it seems to be an issue in Compass as well... but it works in mongo shell.
    Check the screenshot.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  15. Please let the toolkit refresh database status more freequently

    Please let the toolkit refresh database status more freequently.
    You guys can having a try,to use playground create a new database,and then the database status doesnt appear the new database at all.Just need reloading VS Code and then i could found that there was a new database.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Connectivity  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  16. Code linting when you save a .mongodb file

    It would be nice to have the code cleaned up when you save a .mongodb file

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  17. Translate Code

    Directly translate code (MQL / SQL) to (MQL, SQL, .NET, Python...etc.) to cover all supported drivers.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Playground  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  18. Allow launching mongodb shell with connections which are not currently connected

    Currently, it's possible to launch the MongoDB Shell from an active connection.

    It would be nice to have the action to launch a shell from also for inactive connections in the tree.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Shell  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  19. Proxy usage

    Hello,
    can you please implement a proxy configuration possibility?
    I would like to use the client from within an corporate network.
    Kind regards,
    Holger Simon

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  20. Improvements to Terminal Shell

    When a connection is setup, allow additional configuration for the Terminal Shell

    1. Allow a colour scheme for the shell, so that the user can set background/text colours, so red for LIVE. Very useful when on LIVE/TEST/DEV etc. A clear indication of where you are.

    2. Set a friendly name or full connection string for additional line in the terminal shell, so you can see where you are at all times, where you are connected to.

    You can have multiple shells connected at anyone time and again it helps to see what that shell is connected to.

    You only have to drop…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Connectivity  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  • Don't see your idea?

MongoDB for VS Code

Categories

Feedback and Knowledge Base