VS Code SnippetsThe FastEndpoints VS Extension adds the following handy code snippet shortcuts to make it faster to scaffold/expand new classes in your project: epreqScaffolds an endpoint with only a request dto
epreqresScaffolds an endpoint with request and response dtos
epnoreqScaffolds an endpoint without a request nor response dto
epresScaffolds an endpoint without a request dto but with a response dto
epdtoScaffolds the request & response dtos for an endpoint
epvalScaffolds an endpoint validator for a given request dto
epmapScaffolds an endpoint mapper class for the given request, response and entity dtos
epsumScaffolds a summary class for a given endpoint and request dto
epdatScaffolds a static data class for an endpoint
epfullScaffolds the complete set of classes for a full vertical slice VS New Item TemplateIf 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. ![]() |