So my coding standard is like so:
// 1. OK:
if (condition){
doSomething();
}
...
// 2. OK
if (condition) doSomething();
...
//3. NOT OK:
if (condition)
doSomething();
...
however, monodevelop's Format Document takes the #2 single-line statements and converts them to #3 NOT OK. Anyone know of a policy setting that will leave them on the same line? I can't seem to find anything. I did find a setting to always insert braces and convert #2 to #1.
↧