Create files from a template

2

I do not know if my question is intelligent and if it is possible to do it. I need to automate the creation of files in Visual Studio, here in the company, whenever we create a VIEW it is necessary that two more files are created [VIEWNAME] .main.js and [VIEWNAME] .controller.js , they still have almost the same source code, but with some peculiarities.

Does anyone have a source of material about it? Thanks!

    
asked by anonymous 23.06.2015 / 22:55

1 answer

3

You'll have to create your own Scaffolder for this. This can be done using Sidewaffle , an extension that creates other extensions for Visual Studio.

Here is a video that can be quite instructive of Mads Kristensen explaining how to make your own extension.

Here's an excellent tutorial for developing your own plugin with the template items.

    
23.06.2015 / 23:06