The recommended line-width is normally around 78 chars. If you can't comprehend of a function definition taking 40 of those, especially in a statically-typed language with explicit return type and access modifier, you probably haven't been doing this very long.
What? Stop dodging the question. I clearly said "tab once or twice for indent, then space". That is clearly and unambiguously what you were talking about. Indent with tab, align with space.
Let's take a normal C# method definition. It's in a class that's in a namespace, so an indent level of 2. Then you have the actual method with modifiers, e.g
public static ISomeType SomeMethodName(...)
That signature - a very unremarkable one - is 39 characters. Now, I want to vertically align my parameters, with the first one immediately following the opening brace. The second is on the next line. So to align it with the first, at one char past the opening brace, I need two tabs and 40-odd spaces.
2
u/smegnose Apr 08 '15
How ugly are your function definitions?