Docs Menu

Docs HomeMongoDB Atlas

Connect via VS Code

On this page

  • Copy Your Deployment's Connection Information
  • Create a Connection to a Deployment

To connect to a database deployment with VS Code, copy your connection information from Atlas and use it to connect using VS Code. You can connect to a standalone, replica set, or sharded cluster host.

To find and copy your deployment's connection information:

1

Click Database near the top of the Atlas console.

2
3

A Connect dialog appears with a list of available connection methods.

4

Follow the directions under Connect using VS Code to create a connection to your database deployment.

For instructions on creating a connection to your database deployment using VS Code, see Connect to Your MongoDB Deployment in the MongoDB for VS Code documentation. If you copied your Atlas connection string in the previous procedure, follow the steps to use your Atlas connection string.

Tip

The Connect to Your MongoDB Deployment page also provides information on disconnecting from a deployment and information on activating, renaming and removing a connection.

←  Connect to a Cluster using Command Line ToolsSimulate a Failover or Outage →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.