Skip to content

SinyavtsevIlya/AddAnyFile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add Any File

This is fork of Add New File extension which may use local templates.

Short demo

Local templates demo

How to use

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.

Tips:

  • {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.

How to install

  1. In Visual Studio: Open Extensions > Manage Extensions > Online
  2. Print "local templates" and press download

Marketplace page

About

A Visual Studio extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C# 100.0%