ReSharper code formatting question.

You guys rock my programming world, but can you get ReSharper to do format code per the example on this page]]>? Basically it's column aligned access level, type, name, value for variable, property, method definitions.

TIA!!
Alex

3 comments
Comment actions Permalink

I don't think this is possible in an out-of-the-box configuration, but you should be able to write an add-in or macro to achieve this.

Unfortunately, I'm not well versed in such matters, and cannot help :(

Ciao

0
Comment actions Permalink

I think that such a formatting is not better than the default one. This is called endline layout and it's extremely hard to maintain -- by adding a new variable you might end up updating 100 lines so that all the lines are alligned. It's so "bad" that without a support from IDE it is almost impossible to maintain.

David.

0
Comment actions Permalink

Hello David,

and it makes my eyes work harder!

I think that such a formatting is not better than the default one.
This is called endline layout and it's extremely hard to maintain --
by adding a new variable you might end up updating 100 lines so that
all the lines are alligned. It's so "bad" that without a support from
IDE it is almost impossible to maintain.

David.



0

Please sign in to leave a comment.