Download Free ASP.NET Core Snippets (Visual Studio Code Extension)

Hi Friends,

Today, I have published my first extension for ASP.NET Core regular stuffs like controller, startup file and main program file. When you login to http://marketplace.visualstudio.com, it will open the below page.

26th

Here either you search with “asp.net core” or with my name “Rahul Sahay“, it will give the below result.

25th

Once you click on the same, it will come on the below page,

27th

Now, open visual studio code and type “ctrl+shift+p” and then paste the command.

16th

This will search from market place extension and list them below.

28th

Once, you click on install button, it will install the extension as shown below.

29th

And, once gets installed successfully, it will ask to reload the visual studio code to activate the extension.

30th

Now, to test the same, simply go ahead and create one .cs file say “sample.cs” and then type the below shown commands and then simply tab out.

cmd–> ProgramFile

20th

will create below skeleton code for ASP.NET Core Main Program.

21th

cmd–> HomeController

22nd

will emit below boiler plate code.

31th

Similarly, cmd–> Startup

23rd

will emit below stuff.

24th

These are the stuffs which is required normally while creating any ASP.NET Core App from scratch. Many a time developers don’t remember the complete syntax and flow of the program. These kind of snippets can be a good starting point. Kindly, provide me your feedback on the same.

Link:- https://marketplace.visualstudio.com/items?itemName=rahulsahay.Csharp-ASPNETCore

Thanks,
Rahul Sahay
Happy Coding

2,902 total views, 3 views today