Prevent VS from changing code style?
-
Question 1: It seems silly, but I have the need to put the lines of the code together to see everything faster. VS reformats the appearance, so I have to remove their corrections from time to time. How do you prevent VS from reforming the appearance of the code? Example.I have this code: If (A == 1) { B = 2; C = 3; } And Visual Studio fits it to: If (A == 1) { B = 2; C = 3; } The same thing happens with spaces. For example I want everything together as if(A==1)... Question 2: On the other hand, sometimes I have a code paragraph with the keys and text in the wrong place and I want VS to reformat it all together (not line by line). Example: If (A == 1) { B = 2; C = 2; } Notes: You could do a section only with the faults and improvements that I find in VS. Today's example: It does sometimes, but not always, I get errors when compiling, I correct them and they continue to appear as if I had not changed it. Although compile again, it still does. It is only solved if I close and open the solution. Thanks.
-
Question 1: It seems silly, but I have the need to put the lines of the code together to see everything faster. VS reformats the appearance, so I have to remove their corrections from time to time. How do you prevent VS from reforming the appearance of the code? Example.I have this code: If (A == 1) { B = 2; C = 3; } And Visual Studio fits it to: If (A == 1) { B = 2; C = 3; } The same thing happens with spaces. For example I want everything together as if(A==1)... Question 2: On the other hand, sometimes I have a code paragraph with the keys and text in the wrong place and I want VS to reformat it all together (not line by line). Example: If (A == 1) { B = 2; C = 2; } Notes: You could do a section only with the faults and improvements that I find in VS. Today's example: It does sometimes, but not always, I get errors when compiling, I correct them and they continue to appear as if I had not changed it. Although compile again, it still does. It is only solved if I close and open the solution. Thanks.
-
I am a very simple person and I do not understand the brief and enigmatic answers. I also have not found that option that indicates.