Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>JSON2dtsNew to Visual Studio Code? Get it now.
JSON2dts

JSON2dts

JSON2dts

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

Introduction

Generate TypeScript type definitions from JSON

Feature

  • JSON to typescript
  • JSON auto correction
  • Automatic I prefix addition, multi-level object support

Usage

1, Right-click to convert the selected text, clipboard in

2, You can use CMD + Alt + V or CTRL + Alt +V to convert JSON from the clipboard to the TypeScript interface.

3, Open panel UI

Mac: command+shift+p Windows: Ctrl + Shift + P

Use the 2dts command to quickly open the panel

Setting

  • On Windows/Linux - File > Preferences > Settings > JSON2dts
  • On macOS - Code > Preferences > Settings > JSON2dts

alt 属性文本

Question Feedback

https://github.com/zenotsai/json2dts-gen/issues

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