Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>N CSharp To TypeScriptNew to Visual Studio Code? Get it now.
N CSharp To TypeScript

N CSharp To TypeScript

Tienguyennn

|
14 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

NTool: CSharpToTypescript

🚀 Overview

CSharpToTypescript is a powerful Visual Studio Code extension that simplifies the process of converting C# classes to TypeScript interfaces/classes. No more manual rewriting - just select, convert, and go!

✨ Features

  • 🔄 Instantly convert C# classes to TypeScript
  • 📋 Supports basic class structures
  • 🎯 Automatic type mapping
  • 💻 Easy to use with just a few clicks

🛠️ Installation

From Visual Studio Code Marketplace

  1. Open Visual Studio Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "CSharpToTypescript"
  4. Click "Install"

Manual Installation

  1. Download the latest .vsix file from the releases
  2. Open VS Code
  3. Go to Extensions
  4. Click on "..." (More Actions)
  5. Select "Install from VSIX..."
  6. Choose the downloaded .vsix file

🖥️ Usage

  1. Open a typescript file
  2. Patse the class you want to convert
  3. Open Command Palette (Ctrl+Shift+P)
  4. Type "CSharp to TypeScript"
  5. Press Enter

Example

C# Input:

public class Person {
    public string Name { get; set; }
    public int Age { get; set; }
}

TypeScript Output:

export default class PersonType {
  name: string;
  age: number;
}

🔍 Limitations

  • Supports basic class structures
  • Limited support for complex generics
  • Does not preserve comments
  • No inheritance conversion

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📋 Requirements

  • Visual Studio Code v1.60.0 or higher
  • TypeScript knowledge

🐛 Reporting Issues

Found a bug? Please report it in the GitHub issues section with:

  • VSCode version
  • Extension version
  • Detailed description of the issue

📄 License

NTool

🙌 Acknowledgements

  • Developed with ❤️ for developers

Happy Coding! 🚀👩‍💻👨‍💻

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft