On Mon, Mar 17, 2008 at 11:37 PM, Ásgeir Halldórsson <[EMAIL PROTECTED]> wrote: > Hi, > > Why are we not just using TAB char instead of spaces? >
I have been confused on that point as well. The coding standard, based on Mono, is to use "8-space tabs", which simply means that tabs should be represented as 8 spaces. I personally prefer and use "4-space tabs". It's a preference setting in Visual Studio that generally does not affect anyone else; except if you are trying to align comments (or multi-line) code. I attempt to avoid those situations. I use Visual Studio's AutoFormat Code feature which can be triggered by the key short-cut sequence, CTRL-K followed by CTRL-D. Note, you have to adjust some of the default Visual Studio settings available under "Options" | "Text Editor" | "C#" | "Formatting": * Under "Space" | "Set spacing for method declarations", turn on "Insert space between method name and its opening parenthesis". * Under "Space" | "Set spacing for method calls", turn on "Insert space between method name and its opening parenthesis". * Under "New Lines" | "New lies options for braces", turn off "Place open brace onnew line for control blocks" ^ If I missed one, please let me know. I prefer Visual Studio's default formatting style, but we can't have everything we want. Phil ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ SharpOS-Developers mailing list SharpOS-Developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sharpos-developers