tags:

views:

48

answers:

1

With my current settings, ReSharper breaks a long line like this:

var attributes =
    GetType().GetMethod((string) filterContext.RouteData.Values["action"]).GetCustomAttributes(
        typeof (AutomaticRedirectToViewAttribute), false);

I think it's better than not breaking the line at all, but breaking it at the dots of methods/properties makes more sense to me:

var attributes = 
    GetType()
    .GetMethod((string) filterContext.RouteData.Values["action"])
    .GetCustomAttributes(typeof (AutomaticRedirectToViewAttribute), false);

(It doesn't have to look exactly like this.) How can I setup ReSharper to do it this way? I haven't found such option in its settings.

A: 

In Visual Studio 2010 it's works as you want it.

Which version are using?

Mendy
I am using VS 2010.
svick

related questions