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

js2ts

wof

|
200 installs
| (0) | Free
js2ts is a VSCode extension that can convert JavaScript objects or JSON data into TypeScript interfaces.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

✨✨✨

vscode 1.83.0+

Js2Ts

js2ts is a VSCode extension that can convert JavaScript objects or JSON data into TypeScript interfaces.

js2ts 是一个 VSCode 扩展,它可以将 JavaScript 对象或 JSON 数据 转换为 TypeScript 接口。

🍃 Usage 使用

· ctrl+alt+v

Js2ts uses ctrl+alt+v to convert JavaScript objects or JSON data from the clipboard to a TypeScript interface.

js2ts 使用 ctrl+alt+v 将 JavaScript 对象或 JSON 数据 从剪贴板转换为 TypeScript 接口。

· ctrl+alt+f

Js2ts uses ctrl+alt+f to convert api url from the clipboard to a TypeScript interface.

js2ts 使用 ctrl+alt+f 将 接口地址 从剪贴板转换为 TypeScript 接口。

🍃 Modify Shortcut Keys 修改快捷键 !!!

We found that keyboard shortcuts are easily conflicted, or may not work, or you may not like such shortcuts, so we recommend customizing your favorite shortcuts.

我们发现键盘快捷键很容易发生冲突,或者可能不起作用,或者你可能不喜欢这样的快捷键,所以我们建议自定义你喜欢的快捷键。

🍃 Configuration 配置


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