Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Convert model c# to Interface NextJSNew to Visual Studio Code? Get it now.
Convert model c# to Interface NextJS

Convert model c# to Interface NextJS

Extension NextJS

|
21 installs
| (0) | Free
Convert Model C# to Interface NextJS
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CSharpToTypeScript

A Visual Studio Code extension to convert C# class or properties into a TypeScript interface.

Features

  • Convert selected C# properties into TypeScript interface.
  • Automatically handle nullable types and comments.
  • Format the output using Prettier.

How to Use

  1. Select C# properties in your editor.
  2. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
  3. Run the command Convert C# to TypeScript Interface, use hotkey ctrl+alt+c or right click menu.
  4. the selected text will be replaced with a TypeScript interface.

Example

Input:

public Guid Id { get; set; }
public string? Name { get; set; }
public bool IsActive { get; set; }

```interface
export interface IModule {
  id: string;
  name?: string;
  isActive: boolean;
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft