Jul 29, 2011

Quiz: How to align "=" symbols?

This is kind of a question that was sitting in my head for a while. Suppose you have this:

I too good.

int i = 29;
var myString = "somestring";
object context = new Context();

I would really like to see something like this:

... = 29;
... = "somestring";
... = new Context();

Of course, you can use some boring tool for this. But we have a winner, and it is so great so I decided to share it with you, my dear reader.

The following example describes completely winner's approach:

int _iiiiiiiii = 29;
var _myStrngSt = "somestring";
object context = new Context();

No comments: