Back to Devexpress

How to: Create a Template from an Existing One

coderushforroslyn-402508-getting-started-examples-code-generation-how-to-create-a-template-from-an-existing-one.md

latest779 B
Original Source

How to: Create a Template from an Existing One

  • May 30, 2022
  1. Open the Editor | All Languages | Templates options page.

  2. Choose a template language from the combo box in the page’s top left.

  3. Find a template and right-click it.

  4. For this example, choose Create Duplicate from the menu.

  5. Enter the template name and click OK in the New Template dialog.

  6. Edit the new template according to your needs. For example, change the Primary key option to Secondary key for the “pbsn” template to expand this template with the Shift + Space shortcut.

  7. Click Apply and OK to save the new template and close the options page.

  8. Expand the created template.