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.
Here either you search with “asp.net core” or with my name “Rahul Sahay“, it will give the below result.
Once you click on the same, it will come on the below page,
Now, open visual studio code and type “ctrl+shift+p” and then paste the command.
This will search from market place extension and list them below.
Once, you click on install button, it will install the extension as shown below.
And, once gets installed successfully, it will ask to reload the visual studio code to activate the extension.
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.
will create below skeleton code for ASP.NET Core Main Program.
will emit below boiler plate code.
Similarly, cmd–> Startup
will emit below stuff.
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.
2,902 total views, 3 views today