C # In #CodeThe editor can automatically format and adjust the C # code to make the code format more neat and consistent.
However, sometimes the Default Formatting method is not what we want. For example, when writing someProgramA single expression contains many mathematical operators (most of which are binary operators) and mathematical function calls. When you use the automatic Formatting Function of the C # editor, a space is added before and after each binary operator in the Code by default, as a result, even the code with a simple mathematical expression looks very long, for example:
Beta = (MU [0]-mu [1]-mu [2])/sum;
In this case, we may want to adjust the Default Formatting settings to remove spaces before and after the binary operators. The formatted code looks like this:
beta = (MU [0]-mu [1]-mu [2])/sum;
In vs2010, you can perform the following settings: