Quantcast
Channel: How do I edit the Visual Studio templates for new C# class/interface? - Stack Overflow
Browsing all 9 articles
Browse latest View live

Answer by sunefred for How do I edit the Visual Studio templates for new C#...

Just want to add to the excellent answer from Sam Harwell. There might be more than one class template, for instance AspNetCore has its own template at: C:\Program Files (x86)\Microsoft Visual...

View Article



Answer by TiTime for How do I edit the Visual Studio templates for new C#...

Old question - new answer: Sorry for the, maybe, offending question: Why would you care about it at all. Productivity Power Tools (visual studio extension, i would recommend using it anyway) ->...

View Article

Answer by tjlindahl for How do I edit the Visual Studio templates for new C#...

New class templates might be located in different folders depending on the project type as well. While working in a Web Project in VS 2015, I found that when editing the file C:\Program Files...

View Article

Answer by Aaron Hoffman for How do I edit the Visual Studio templates for new...

For Visual Studio 2012, to remove these from the default class.cs file, the item template could look like this (do not include/remove using statements): Default Class Template file: C:\Program Files...

View Article

Answer by Sam Harwell for How do I edit the Visual Studio templates for new...

Extract, edit and recompress. Paths are for the class template, but the interface templates are in the same folder. You may want to edit the VS template file in each to remove the fact that they don't...

View Article


Answer by SLaks for How do I edit the Visual Studio templates for new C#...

You're looking for the following directory: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp Each template is a ZIP file inside the 1033 (English) subfolder of one of...

View Article

How do I edit the Visual Studio templates for new C# class/interface?

I find myself removing the following import statements in nearly every C# file I create in Visual Studio: using System.Collections.Generic; using System.Linq; using System.Text; Of course its really...

View Article

Answer by Dave Robinson for How do I edit the Visual Studio templates for new...

New addition to the excellent info from Sam Harwell. I'm using Visual Studio 2019 Community, and the path to my class template is the same as already mentioned, except for "Enterprise", which is...

View Article


Answer by Max for How do I edit the Visual Studio templates for new C#...

None of the mentioned solutions worked for me so I'm posting the way how I have solve it for VS 2019 (16.7.7):I have followed the steps from here:I have opened the dir with the template:C:\Program...

View Article

Browsing all 9 articles
Browse latest View live




Latest Images