Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CaseFormatterNew to Visual Studio Code? Get it now.
CaseFormatter

CaseFormatter

huseyinkalemkas

|
2 installs
| (0) | Free
Seçtiğiniz C# entity metnini TypeScript interface'e dönüştüren VS Code eklentisi.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CaseFormatter

CaseFormatter is a VS Code extension that converts selected C# entity/class code into a TypeScript interface.

Features

  • Converts properties (get; set; and get; init;) inside a C# class into TypeScript fields
  • Provides multiple case options for output field names:
    • camelCase
    • PascalCase
    • lowercase
    • UPPERCASE
  • Includes Command Palette and keyboard shortcut support

Usage

  1. Open a file containing a C# class/entity.
  2. Select the class block you want to convert.
  3. Run the command:
    • Command Palette: CaseFormatter: Generate Interface from Entity
    • Shortcut: Ctrl+Alt+I (macOS: Cmd+Alt+I)
  4. Choose the desired output case format from the list.
  5. The selected text will be replaced with the generated TypeScript interface.

Example

Input

public class Product
{
    public int Id { get; set; }
    public string Name { get; set; }
    public decimal? Price { get; set; }
    public DateTime CreatedAt { get; set; }
}

Output

export interface IProduct {
  id: number;
  name: string;
  price: number | null;
  createdAt: string;
}

Extension Settings

This extension adds the following setting:

  • caseformatter.defaultCase: Default field naming format (camel, pascal, lower, upper)

Requirements

  • Visual Studio Code ^1.116.0

Release Notes

See the CHANGELOG.md file for version history.

License

MIT – see LICENSE for details.

CaseFormatter

CaseFormatter, seçtiğiniz C# entity/class metnini TypeScript interface çıktısına dönüştüren bir VS Code eklentisidir.

Özellikler

  • C# class içindeki property'leri (get; set; ve get; init;) TypeScript alanlarına çevirir
  • Çıktı alan adları için farklı case seçenekleri sunar:
    • camelCase
    • PascalCase
    • lowercase
    • UPPERCASE
  • Komut paleti ve klavye kısayolu desteği içerir

Kullanım

  1. C# class/entity içeren bir dosya açın.
  2. Dönüştürmek istediğiniz class bloğunu seçin.
  3. Komutu çalıştırın:
    • Komut Paleti: CaseFormatter: Entity'den Interface Üret
    • Kısayol: Ctrl+Alt+I (macOS: Cmd+Alt+I)
  4. Açılan listeden çıktı case biçimini seçin.
  5. Seçili metin, üretilen TypeScript interface ile değiştirilir.

Örnek

Girdi:

public class Product
{
    public int Id { get; set; }
    public string Name { get; set; }
    public decimal? Price { get; set; }
    public DateTime CreatedAt { get; set; }
}

Çıktı:

export interface IProduct {
  id: number;
  name: string;
  price: number | null;
  createdAt: string;
}

Eklenti Ayarları

Bu eklenti aşağıdaki ayarı ekler:

  • caseformatter.defaultCase: Varsayılan alan adlandırma biçimi (camel, pascal, lower, upper)

Gereksinimler

  • Visual Studio Code ^1.116.0

Sürüm Notları

Sürüm geçmişi için CHANGELOG.md dosyasına bakabilirsiniz.

Lisans

MIT - detaylar için LICENSE.

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