SinyavtsevIlya / AddAnyFile

A Visual Studio extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Other


Languages

Language:C# 100.0%