Trong các dự án enterprise .NET, chúng ta thường có: Coding convention riêng Architecture pattern riêng Folder structure riêng Vấn đề là GitHub Copilot thường generate code theo pattern phổ biến trên internet , chứ không theo convention của project. Trong bài viết này mình thử nghiệm một cách “huấn luyện nhẹ” Copilot để nó tuân theo structure của project. Setup GitHub Copilot trong Visual Studio 2026 Tạo file copilot-instructions.md Structured prompt với constraints Setup GitHub Copilot trong Visual Studio 2026 Đăng nhập GitHub View → GitHub Copilot Chat Login GitHub account của bạn. Copilot sẽ hoạt động nếu bạn có: Copilot Individual Copilot Business Copilot Enterprise Test Copilot Tạo file: TestRepository.cs Viết comment: // create a generic repository for EF Core Nếu Copilot gợi ý code → setup thành công. Vấn đề khi dùng Copilot trong dự án thật Mục tiêu là rewrite theo pattern: Entity Framework Repository Pattern Unit Of Wo...
Suy nghĩ, yêu thương và làm việc hết mình