使用當前設置,ReSharper的打破長行是這樣的:自動換行對方法鏈點在ReSharper的
var attributes =
GetType().GetMethod((string) filterContext.RouteData.Values["action"]).GetCustomAttributes(
typeof (AutomaticRedirectToViewAttribute), false);
我覺得它比不破線要好,但在打破它的方法/屬性點讓我更有意義:
var attributes =
GetType()
.GetMethod((string) filterContext.RouteData.Values["action"])
.GetCustomAttributes(typeof (AutomaticRedirectToViewAttribute), false);
(它不必看起來完全這個樣子。)我如何設置ReSharper的做這樣?我的設置中沒有找到這樣的選項。
這將在7.1中添加(請參閱http://blogs.jetbrains.com/dotnet/2012/09/resharper-71-early-access-is-open/)。 – Dresel 2012-09-30 12:12:19