This is fork of Add New File extension which may use local templates.
Just create a new .template
file in your target folder and now any file created using AddNewFile command will use this local template instead of global predefined templates like .cs
or .html
This is extremely helpful when you layout your project structure by categories, like Serviсes
, Systems
, Components
etc.
-
{itemname}
and{namespace}
tags inside your template will be replaced with the file name. -
"Exlude From Project" your template in order not to mess with an actual code. You always can press Show All Files button in the Solution Explorer to see and modify it.
-
For Unity users: to prevent Unity from including back you templates simply name it starting with
.
e.g..services.template
. This will make your template invisible for Unity.
- In Visual Studio: Open Extensions > Manage Extensions > Online
- Print "local templates" and press download