Thay đổi template của Visual Studio

2008 March 13
by Nguyễn Hùng Cường

Nếu bạn muốn chỉnh sửa template item thì theo đường dẫn :

%InstallDir%/Common7/IDE/ItemTemplates

Hoặc nếu bạn muốn chỉnh sửa template project thì theo đường dẫn :

%InstallDir%/Common7/IDE/ProjectTemplates

sẽ thấy các template có sẵn của Visual Studio, bạn chọn ngôn ngữ, chọn file template muốn chỉnh sửa -> unzip -> chỉnh sửa -> sau đó lưu lại.

Làm tương tự với

%InstallDir%/Common7/IDE/ItemTemplatesCache

%InstallDir%/Common7/IDE/ProjectTemplatesCache

Ví dụ : nhc muốn chỉnh sửa template của class thì nhc tìm file Class.zip, mở file Class.cs và chỉnh sửa tùy thích, sau đó lưu lại. Tiếp tục qua bên ItemTemplatesCache làm như trên, lưu lại là xong :D

Chú ý : Chỉnh sửa item template thì dễ hơn nhiều so với chỉnh sửa project template :)

*Đường dẫn mặc định (InstallDir) là [Program Files/Microsoft Visual Studio 8].

NHC

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS