Find the path of the class file: C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ common7 \ ide \ itemtemplatescache \ CSHARP \ code \ 2052 \ class
1. Open the class. CS file and insert the following code in the file header:
1 # add a comment to the region file 2/* ========================================== =================== 3 * function description: $ safeitemrootname $4 * Creator: Wang Guangxu 5 * creation date: $ time $6 * CLR version: $ clrversion $7 * Machine Name: $ machinename $8 * User's domain: $ userdomain $9 * Registration Organization Name: $ registeredorganization $10 * namespace name: $ rootnamespace $11 * Current logon Username: $ username $12 * ======================================== ================= */13 # endregion
The effect of the new file is as follows:
2. Add comments to files such as interfaces.
Add default header comments to vs files