VS Code Snippets
The FastEndpoints VS Extension adds the following handy code snippet shortcuts to make it faster to scaffold/expand new classes in your project:
Scaffolds an endpoint with only a request dto
Scaffolds an endpoint with request and response dtos
Scaffolds an endpoint without a request nor response dto
Scaffolds an endpoint without a request dto but with a response dto
Scaffolds the request & response dtos for an endpoint
Scaffolds an endpoint validator for a given request dto
Scaffolds an endpoint mapper class for the given request, response and entity dtos
Scaffolds a summary class for a given endpoint and request dto
Scaffolds a static data class for an endpoint
Scaffolds the complete set of classes for a full vertical slice
VS New Item Template
If you're doing vertical slice architecture and placing each individual feature in their own namespace, you can take advantage of the new item template added to the "add new file" dialog of visual studio to make it convenient to add feature file sets to your project.
Once installed, your visual studio add new item dialog will have FastEndpoints Feature File Set listed under Installed > Visual C# node. Then, instead of entering a file name, simply enter the namespace you want your new feature to be added to followed by .cs
A new feature file set will be created in the folder you selected.
There will be 4 new files created under the namespace you chose.
Click here for an example feature file set.