Setup MongoDB Atlas in your Code Editor VS-Code

in this artical we will see how we can setup the MongoDB database in our vs code so we don’t need to switch to robo 3t or open MongoDB atlas to see database.

The first step is to download mongodb extension in vs code . link is here

now after that you will see mongodb logo in left side bar , click on it and you will see screen like this

click on the connect button and you will see you local databases

now if you want to connect with mongodb atlas you have to input the connection string which was generate on mongodb atlas ,

click on the connect with a connection string and write connection string like that

mongodb+srv://<username><password>@cluster-2eqju.mongodb.net/test?retryWrites=true&w=majority

so here is you db connect successfully.

thank you , you can subscribe to my YouTube channel.

Hi I am Zain Ahmed Software Engineer with passionate about try different technologies and try some cool staff, I create Blogs/Content on different platform.