To connect to a cluster 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.
配置の接続情報のコピー
配置の接続情報を検索してコピーするには、次の手順に従います。
Atlas で、プロジェクトの Clusters ページに移動します。
まだ表示されていない場合は、希望するプロジェクトを含む組織を選択しますナビゲーション バーのOrganizationsメニュー
まだ表示されていない場合は、ナビゲーション バーのProjectsメニューから目的のプロジェクトを選択します。
サイドバーで、 Database見出しの下のClustersをクリックします。
[ Clusters (クラスター) ] ページが表示されます。
配置への接続の作成
For instructions on creating a connection to your cluster 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
[ MongoDB 配置への接続 ]ページには、配置からの切断に関する情報と、接続のアクティブ化、名前変更、削除に関する情報も記載されています。