Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Can I Generate API Controllers in IntelliJ Rider?

In Visual Studio, I can generate API controllers in a Web API project by selecting Add | Controller:

enter image description here

From this menu, I can choose model class, context class and controller name and with a button press I can generate hundreds of lines of boilerplate.

I've moved to IntelliJ Rider, but I can't find a way to generate controllers. Does anyone know if this can be done with point and click? If not, are there terminal commands to do this?

like image 927
Code_Steel Avatar asked Nov 23 '17 17:11

Code_Steel


1 Answers

This is possible as of v2021.1

https://blog.jetbrains.com/dotnet/2021/03/18/scaffolding-for-asp-net-core-projects-comes-to-rider-2021-1/

like image 79
chanban Avatar answered Sep 29 '22 11:09

chanban