October 21, 2024
Chicago 12, Melborne City, USA
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

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video