Quantcast
Channel: Questions in topic: "policy"
Viewing all articles
Browse latest Browse all 64

monodevelop formatting policy to allow single-line 'if' statemetns?

$
0
0
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.

Viewing all articles
Browse latest Browse all 64

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>