June 22, 2023

A first Visual Studio project (with C#)

I just finished installing Visual Studio Community 2022 on my Windows 10 machine. Let's try it out.

I create a new project. I select C# console app. It puts it in:

/Users/tom/source/repos/ConsoleApp1
It calls it a solution and a project all in one and selects .NET 6.0 for it. Then it "creates the project". It is surprisingly slow. Sometimes I think Microsoft does this just to make you think it is doing a lot, when it could actually be done in a fraction of a second. What could it possibly be doing? Maybe it is downloading the entire .NET 6.0 SDK.

I go away and eat dinner. When I get back, an entirely different window is presented (that looks like what you expect an IDE to look like). Some code is presented in a central window, and a green triangle top and center beckons. It will "run without debugging". So I click it. What looks like build activity is logged in a section at the bottom, and after a while a new window opens that shows:

Hello, World!
It tells me to press any key to close the window.

This is certainly luxury code development. Now all we need is VIM ....

Right in the menu bar at the top of visual studio is "extensions", and "manage extensions" appears in the drop down menu. A search for "vim" quickly locates VsVIM with a download button. After the download it tells me that VsVIM is scheduled to be added, but that will happen when all visual studio windows are closed.

I do a "save all" then exit visual studio. After a short bit, something called VSIX installer tells me that it is running. It tells me it is going to modify visual studio by adding VsVIM, and wants me to click on a "Modify" button -- which I do.

I relaunch visual studio and open the one and only recent project. Yes! All my vim habits work like a champ. Thank you.


Feedback? Questions? Drop me a line!

Tom's Computer Info / tom@mmto.org