Hi
The Designer file is built and maintained by the system and is not meant to be changed by the user (it can be edited as it is just a text file, but if you edit it, the system may overwrite your changes)
The basic answer is: do not edit, view it to learn how to add some control code to your own code (i.e. how to add controls at run time).
As for the formatting of the contents - that is entirely up to the system.
with regard to your question: 'ways to stop the visual studio from doing that?' - not really is the answer, and, why bother even thinking about that, it is best to ignore that file and leave the system to handle it.
Did you notice the
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.