{"id":10194,"date":"2025-05-23T09:00:27","date_gmt":"2025-05-23T16:00:27","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=10194"},"modified":"2025-08-06T05:34:28","modified_gmt":"2025-08-06T12:34:28","slug":"meet-the-documentdb-extension-for-vs-code-and-documentdb-local-a-fast-friendly-way-to-work-with-documentdb-locally-and-beyond","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/meet-the-documentdb-extension-for-vs-code-and-documentdb-local-a-fast-friendly-way-to-work-with-documentdb-locally-and-beyond\/","title":{"rendered":"Meet the DocumentDB Extension for VS Code and DocumentDB Local \u2014 A Fast, Friendly Way to Work with DocumentDB, Locally and Beyond"},"content":{"rendered":"<p>Say hello to the new DocumentDB extension for Visual Studio Code\u2014an efficient open-source database tool that brings your MongoDB API and DocumentDB databases right into your editor. Designed for developers building cloud apps, working in hybrid or local setups, or debugging live production systems, this extension lets you browse, manage, and query your data directly from VS Code with ease.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture1-1.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10195\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture1-1.png\" alt=\"Picture1 image\" width=\"1248\" height=\"796\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture1-1.png 1248w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture1-1-300x191.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture1-1-1024x653.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture1-1-768x490.png 768w\" sizes=\"(max-width: 1248px) 100vw, 1248px\" \/><\/a><\/p>\n<p><strong>DocumentDB, Now Seamlessly Integrated into VS Code<\/strong><\/p>\n<p>With the <a href=\"https:\/\/github.com\/microsoft\/documentdb\">DocumentDB extension installed<\/a> you can browse collections, inspect documents, run queries, and even make quick data edits, all from a clean, native experience in VS Code.<\/p>\n<p>\ud83d\udd0d <strong>Key capabilities:<\/strong><\/p>\n<p><strong>Universal MongoDB and Azure Cosmos DB for MongoDB Support<\/strong><\/p>\n<p><strong>Seamless Connectivity Across Environments<\/strong>\nEffortlessly connect to any MongoDB or DocumentDB compatible instance, whether it&#8217;s hosted in the cloud or in a hybrid setup, on-premises infrastructure, or even on your local machine.<\/p>\n<p><strong>Flexible Connection Options<\/strong>\nUse a simple connection string or browse and authenticate through your cloud provider&#8217;s native experience. Whether you&#8217;re connecting to a development cluster or a production-grade database, setup is quick and intuitive.<\/p>\n<p><strong>Cross-Platform Service Discovery<\/strong>\nAutomatically discover MongoDB and DocumentDB instances across your cloud subscriptions and regions, making it easier than ever to manage databases across environments.<\/p>\n<p><strong>Broad API Compatibility<\/strong>\nSupports all MongoDB compatible and Azure Cosmos DB for MongoDB databases, ensuring you can work across different providers and versions without changing your workflow.<\/p>\n<p><strong>Built for Developer Productivity<\/strong><\/p>\n<p><strong>Optimized for VS Code<\/strong>\nDesigned to reduce friction and boost productivity, the extension works right within VS Code no additional tools or setup required.<\/p>\n<p><strong>Versatile Data Views\n<\/strong>Explore your data in multiple formats:<\/p>\n<ul>\n<li>Table View for quick insights<\/li>\n<li>Tree View for hierarchical exploration<\/li>\n<li>JSON View for detailed document structure\nAll views support smooth pagination for large datasets.<\/li>\n<\/ul>\n<p><strong>Smart Query Editor<\/strong>\nRun find() queries with built-in:<\/p>\n<ul>\n<li>Syntax highlighting<\/li>\n<li>Auto-complete for operators and collection names<\/li>\n<li>Intelligent field name suggestions based on your schema<\/li>\n<\/ul>\n<p><strong>Fast Import &amp; Export<\/strong>\nImport JSON files into collections in seconds, or export entire collections, query results, or individual documents for backup, analysis, or migration.<\/p>\n<p><strong>Built Open-Source, Backed by the Community<\/strong><\/p>\n<p>The DocumentDB extension is 100% open-source and lives on GitHub: https:\/\/github.com\/microsoft\/vscode-documentdb\/. It\u2019s crafted with input from developers like you and is constantly evolving based on real-world feedback.<\/p>\n<p>Being open means more than just visibility, it\u2019s an invitation to collaborate. We welcome contributions, bug reports, feature requests, and community insights to help make this tool better for everyone.<\/p>\n<p><strong>DocumentDB Local<\/strong><\/p>\n<p>DocumentDB Local provides a lightweight, containerized environment that lets you develop and test applications locally using a MongoDB-compatible interface. It&#8217;s perfect for prototyping or running integration tests. When paired with the DocumentDB extension for Visual Studio Code, it streamlines your local development workflow while staying consistent with DocumentDB\u2019s behavior.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture2.png\"><img decoding=\"async\" class=\"size-full wp-image-10196 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture2.png\" alt=\"Picture2 image\" width=\"594\" height=\"416\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture2.png 594w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture2-300x210.png 300w\" sizes=\"(max-width: 594px) 100vw, 594px\" \/><\/a><\/p>\n<p>To get started with DocumentDB on your local machine, refer to the setup guide available here.<\/p>\n<p><strong>Cross-Platform Service Discovery:<\/strong><\/p>\n<p>Seamlessly connect to both Azure Cosmos DB for MongoDB and native MongoDB or DocumentDB instances , whether hosted on-premises or by any cloud provider enabling unified access, discovery, and integration across environments.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture3-2.png\"><img decoding=\"async\" class=\"size-full wp-image-10197 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture3-2.png\" alt=\"Picture3 image\" width=\"590\" height=\"206\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture3-2.png 590w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/05\/Picture3-2-300x105.png 300w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/a><\/p>\n<p><strong>Quick Start<\/strong><\/p>\n<p>Getting started is easy:<\/p>\n<ol>\n<li>Search for DocumentDB in the VS Code Extensions Marketplace or install it here<\/li>\n<li>Open the new DocumentDB tab in your sidebar<\/li>\n<li>Add a connection string (MongoDB or Azure Cosmos DB with MongoDB)<\/li>\n<li>Explore, query, and manage your data , no setup headaches<\/li>\n<\/ol>\n<p>Here is a a\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/documentdb-local-mongodb-api-on-your-machine\/\">complete guide to setting up and using it end-to-end.\u00a0<\/a><\/p>\n<p>Want to dig deeper? Check out our open-source repo: github.com\/microsoft\/vscode-documentdb .<\/p>\n<p><strong>\u00a0<\/strong><strong>\ud83d\udcac Join the Discussion!<\/strong><\/p>\n<p>Join our\u00a0<a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\/discussions\">GitHub\u00a0discussion boards<\/a>\u00a0to share feedback, ask questions, and help shape the future of this extension with your ideas:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\/discussions\/categories\/announcements\">Announcements<\/a>\u00a0\u2013 Updates on releases, new features, and upcoming plans.<\/li>\n<li><a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\/discussions\/categories\/ideas\">Ideas<\/a>\u00a0\u2013 Suggest new features or improvements.<\/li>\n<li><a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\/discussions\/categories\/general\">General<\/a>\u00a0\u2013 Ask questions and discuss anything about the extension.<\/li>\n<\/ul>\n<p>Your feedback drives development!\u00a0Vote on features, report issues, or suggest improvements in our\u00a0<a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\/issues?q=state%3Aopen%20label%3A%22feedback%20wanted%22\">Feedback Wanted<\/a>\u00a0section.<\/p>\n<h2><strong>Leave a review<\/strong><\/h2>\n<p>Tell us about your Azure Cosmos DB experience! Leave a review on PeerSpot and we\u2019ll gift you $50.\u00a0<a href=\"https:\/\/peerspotdotcom.my.site.com\/proReviews\/?SalesOpportunityProduct=00kPy000004TKXJIA4&amp;productPeerspotNumber=30881&amp;CalendlyAccount=peerspot&amp;CalendlyFormLink=peerspot-product-reviews-ps-gc-vi-sf-50&amp;giftCard=50\">Get started here<\/a>.<\/p>\n<h2><strong>About Azure Cosmos DB<\/strong><\/h2>\n<p>Azure Cosmos DB is a fully managed and serverless NoSQL and vector database for modern app development, including AI applications. With its SLA-backed speed and availability as well as instant dynamic scalability, it is ideal for real-time NoSQL and MongoDB applications that require high performance and distributed computing over massive volumes of NoSQL and vector data.<\/p>\n<p>To stay in the loop on Azure Cosmos DB updates, follow us on <a href=\"https:\/\/twitter.com\/AzureCosmosDB\">X<\/a>,\u00a0<a href=\"https:\/\/aka.ms\/AzureCosmosDBYouTube\">YouTube<\/a>, and\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/azure-cosmos-db\/\">LinkedIn<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Say hello to the new DocumentDB extension for Visual Studio Code\u2014an efficient open-source database tool that brings your MongoDB API and DocumentDB databases right into your editor. Designed for developers building cloud apps, working in hybrid or local setups, or debugging live production systems, this extension lets you browse, manage, and query your data directly [&hellip;]<\/p>\n","protected":false},"author":80443,"featured_media":10198,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[15],"tags":[1951,1919],"class_list":["post-10194","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mongodb-api","tag-documentdb","tag-mongodbvcore"],"acf":[],"blog_post_summary":"<p>Say hello to the new DocumentDB extension for Visual Studio Code\u2014an efficient open-source database tool that brings your MongoDB API and DocumentDB databases right into your editor. Designed for developers building cloud apps, working in hybrid or local setups, or debugging live production systems, this extension lets you browse, manage, and query your data directly [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/10194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/users\/80443"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=10194"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/10194\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/10198"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=10194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=10194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=10194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}