This page X# specific settings w.r.t. source code generating inside VS.
This applies to the source code generated by the Windows Forms editor but also for the source code generated when you choose "Goto Definition" for a member that is defined in an external assembly.