Preview C# / VB.NET WinForms (Designer.cs / Designer.vb) visually in VS Code with click-to-jump to event handlers and a live-edit code panel below the preview.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Ctrl+Shift+P → GumDotNet: Configure Workspace for Thai (Windows-874)
เพียงครั้งเดียวต่อ workspace — extension จะตั้ง files.encoding=windows874 ใน .vscode/settings.json ให้ครับ
จากนั้น VS Code ทั้ง preview และ text editor จะ decode เป็นไทยถูก
ที่มา
extension นี้พัฒนาขึ้นเพื่อช่วยอ่าน/ทำความเข้าใจโค้ดของระบบ Line of Business เก่าที่ port มาจาก VB6 → C# WinForms — โดยเฉพาะการหาว่า control ตัวไหนมี event handler อยู่ในไฟล์ไหนบรรทัดอะไร โดยไม่ต้องเปิด Visual Studio
ถ้าคุณใช้ VS Code เป็นหลัก และต้องอ่านโค้ด WinForms (legacy หรือใหม่) extension นี้จะช่วยให้นำทางในโปรเจกต์ได้เร็วขึ้นมาก
ข้อจำกัด
Static preview — แสดง layout เท่านั้น ไม่รัน data binding