Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>C# Record GeneratorNew to Visual Studio Code? Get it now.
C# Record Generator

C# Record Generator

Jonny Powell

|
661 installs
| (0) | Free
A second rate stand-in missing record feature in C#.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

C Sharp Record Generator

A second rate stand-in missing record feature in C#.

The classes generated by this extension require init, hence .NET 5 or higher.

Commands

  • Generate C# Record: Generate a C# class with record semantics. The command asks for class namespace, name and field types. Fields will all be created as properties without setters, and non-nullable fields will be included in the constructor. If a field is marked as optional with ?, it will not be included in the constructor, but marked as init so it is still accessible during object initialisation.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft