With ReSharper, you can define your own file templates for custom classes. Unfortunately, this is not free, but you can always download the 30-day trial version. It provides a wide range of variables and control options. Here is an example of a FileTemplate:
namespace $NAMESPACE$
{
public class $CLASS$
{
$END$
}
}
Created templates can be added to the quick access list, so when you want to create a new file from a template, you open the context menu in the solution folder and select Add/New From Template/TemplateName.
EDIT: Alternatively, you can provide File Header Textthat will be inserted into all files (which are missing) when you execute the code cleanup command.
source
share