Closed KazuyaZW closed 1 month ago
@KazuyaZW if you're using the C# Dev Kit extension, you should be able to invoke the following command to create a new project:
That should then put you in a quick pick menu where you can select the project template (for example Console App would be one similar to the one in your screenshot).
If you're doing that, and you're not seeing what you expect, can you please share a screenshot of what actually gets generated?
@KazuyaZW The latest .NET console templates use Top-Level Statements (See https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/top-level-statements). The C# extension includes a refactoring to convert a Top-Level Statements program to the more conventional Program.Main
style. It should be in the light bulb when editing a top-level statements program.
Closing, no action to take here. If you're still encountering issues please feel free to reopen.
Hi! Basically a student who just started using vscode after learning c# in visual studio community. When creating a .net console app project it doesn't auto generate this stuff:
Is there any way to get it to do this? (c# and c# developer extension are the only things I have installed)