3

I used to the window version of visual studio for a long time. i switched to macos recently so i am using visual studio mac(preview 6 and 19 versions) right now. After looong long long searching i could not found how to change default c# template in vs mac. is there anyone to know? it is way to much easier in windows as you can see: How do I edit the Visual Studio templates for new C# class/interface?

Preslav Tsenov
  • 163
  • 2
  • 9
bluebird
  • 41
  • 3

1 Answers1

0

After doing some digging for my own project, I have finally found a solution to this

Solution


The location of the template files varies depending on what you would like to edit.

Navigate to: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/Addins

These files are located in the AspNet AspNetCore and Xamarin.Forms.Addin folders.

For the AspNet modules, these files are located in the Templates folder and for Xamarin, you have to navigate to the Templates folder and then into either the iOS, Android or Core folders depending on which template files you would like to change.

Unfortunately I was not able to find where to edit the default files, but I will update this solution as soon as I find them

Matthew Swallow
  • 179
  • 1
  • 11