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

Win2WebTools

tonybinlj

|
6 installs
| (0) | Free
WinForm(VB6,VB.NET,C#) → Web Support for Vue
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

win2webtools README

1.WinForm→Web(Vue)的AI横展开工具
2.View,Style,Service,SpreadJs模板等机能的生成功能

Features

[0.0.5]

  • w2w: UI Convert 命令和右键菜单入口 增加 Designer.cs 解析与 HTML 写出逻辑。转换会先覆盖常见 WinForms 控件和布局属性,给后续扩展留清晰的映射函数。

[0.0.6]

新增了 win2webtools.modelgen: 在 package.json 注册命令 w2w: Model Gen 在 *.Designer.cs 的编辑器右键和资源管理器右键菜单中显示 在 src/extension.ts 复用 Designer 解析逻辑,生成同名 model 文件: Form1.Designer.cs -> Form1Model.cs

[0.0.7]

重构 现在结构是: src/extension.ts:只负责 VS Code 命令注册 src/uiConvert.ts:独立类 UiConvertCommand,负责 win2webtools.uiconvert src/modelGen.ts:独立类 ModelGenCommand,负责 win2webtools.modelgen src/designerParser.ts:公共 Designer.cs 解析逻辑,避免两个类重复代码 extension.ts 里现在调用方式变成: await UiConvertCommand.execute(uri); await ModelGenCommand.execute(uri);

[0.0.8]

win2webtools.servicegen: 功能行为: 输入:*.vb 输出:同目录下 xxx.service.ts 支持识别 VB.NET Class / Module 支持转换 Sub / Function 为 TypeScript 方法 支持常见 VB 类型映射到 TS:String、Integer、Boolean、DateTime、List(Of T) 等 方法体中可转换 Return、Dim、简单赋值;复杂 VB 语句会保留为 // TODO: VB.NET: ...

[0.0.9]

MethodParameterGen.ts 功能为将C# 所有方法的追加一个参数 1.参数在方法的第一个参数位置 2.参数类型为:类名+ViewModel 例如Form1ViewModel 3.参数名为:vModel

[0.0.10]

SJIS2UTF8.ts 功能为 将C#文件用SJIS编码方式打开,并保存为UTF-8格式,不能有乱码出现

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