My main use case for Microsoft Visual Studio is writing code, specifically infrastructure as code to build resources in cloud platforms such as AWS EC2 instances, Google IAM resources, and networks within Azure.
A specific example of a project where I used Microsoft Visual Studio for infrastructure as code is creating Google Cloud projects. The project can be defined using Terraform, and I can write those scripts within Microsoft Visual Studio and execute them from there as well, using the built-in terminal.
I have also briefly used Microsoft Visual Studio for connecting to databases because there is an add-on for PostgreSQL, which allows me to see my code in one section and then connect to a database using my code in another section. That functionality is quite useful.