Forum Visual Studio
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Insert code template

How do I insert a code template in the editor?

When I type, say, ctor, the ctor template shows up in the list that pops up. When I press enter or click it like I can do in Visual Studio, the keyword (ctor) is inserted instead of the template.


  • mattwardmattward GBMember Xamurai

    You need to press the tab key after the ctor keyword has been inserted. So if you type in ctor and press tab twice it should generate the code. The first press will insert the ctor text and then the next tab will generate the code from the template.

  • JahnOttoAndersenJahnOttoAndersen NOMember ✭✭


    Thank you!! I had only pressed tab once :-D

Sign In or Register to comment.