Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>CSharp-Convert-TSNew to Visual Studio Code? Get it now.
CSharp-Convert-TS

CSharp-Convert-TS

magicalconch

|
66,334 installs
| (1) | Free
Converting C# class to Typescript type
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Csharp-Convert-TS README

build and Beta Marketplace Download

This plug-in will be used to convert your C# Type to Typescript Type, So that the program can copy the type conversion directly from the back-end when it needs to build a model.

本插件用于:将C#后端类型,通过右键菜单一键转换为TypeScript类型,方便根据后端类型快速建立TS-Model使用。

Install

Install the CSharp-Convert-TS:

code --install-extension conch.csharp-convert-ts

Features

After copying the CSharp Type, Use the right-click menu or use the shortcut key to convert the type format.

请在安装完插件后,在TS文件内复制C#类,右击转换为TS类型即可,如下图所示:

The following will show you how to convert the copied type through the right-click menu:

image

Extension Settings

You can set specific types you need to convert through contributes.configuration

For example:

This extension contributes the following settings:

CSharp Type: Typescript Type

Known Issues

目前仅支持基础值类型和引用类型,集合,动态类型转换,暂不支持转换以下复杂类型:

1.Dictionary<T,T> 2.HashTable 3.ConcurrentDictionary 4.Custom class 5.Other types not listed...

For more information

At present, it is a beta version, and its function is not stable. If you have any suggestions, you are welcome to raise questions in GitHub project.

  • GitHub Open source project address

  • Change Log

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