OiO.lk Blog templates Can I add default Api Controller in C# in VS Code?
templates

Can I add default Api Controller in C# in VS Code?


I am using a MacBook. How can I add default api controller in C# in VS Code?

I have downloaded the C# Dev Kit in VS Code, but if I add a new api controller, it will be an empty api controller. How can I have the default settings like this:

using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;

[ApiController]
[Route("api/[controller]")]



You need to sign in to view this answers

Exit mobile version