问题
In Visual Studio, I can generate API controllers in a Web API project by selecting Add | Controller:
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?
回答1:
I believe we can do it easily now (2019). Right-click controller folder -> Add -> Controller
来源:https://stackoverflow.com/questions/47460649/how-can-i-generate-api-controllers-in-intellij-rider