Is it possible to change coding conventions in Visual Studio

I want to change the way that Visual Studio generates an encoding template for a WinForms application.

For example, in C #:

  • As soon as I dragged the control into the constructor, the name of this control will be in CamelCase
  • As soon as I define a control event, Visual Studio generates the code as CamelCase, then "_", then the event name in pascalCase

I want Visual Studio to use pascalCase in all cases. Is it possible? If so, how?

+8
c # winforms visual-studio-2012
source share
1 answer

You can do this using your own controls using the DesignerSerializer attribute and provide your own CodeDomSerializer , but no, there is no Visual Studio option or way to connect the designer to change serialization for all / in controls.

+3
source share

All Articles