Skip to content

Templates for struct, enum, record #28915

@vlada-shubina

Description

@vlada-shubina

Right now it’s possible to use a file template to create a class or an interface, but there are no templates for (at least) the following:

  • struct
  • enum
  • record
    It would be nice to have templates for these, too, so I don’t need to create a class and change the keyword.

Related issue: dotnet/templating#1713
Original ticket: https://developercommunity.visualstudio.com/t/Templates-for-other-types-of-C-code-fil/10153010

Metadata

Metadata

Labels

Area-Common templatesCovers templates in the repo (classlib, console, common item templates)triagedthe item was triaged and placed to the backlog

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions