resharper-8.0

Resharper custom patterns change method name

佐手、 提交于 2019-11-30 03:53:19
I want to change method signature from public static async Task Load() to public static async Task LoadAsync() How to define a custom patterns in ReSharper? If I understood you correctly, you want to define a custom pattern to change async Task Method() signature to async Task MethodAsync() . If so, this is possible by using Custom Patterns! For this, go to ReSharper's Options, then Code Inspection → Custom Patterns : Click Add Pattern In the new dialog, make sure Replace is selected Type the Search and Replace pattern exactly as they appear in the image below. Depending on your ReSharper

Resharper custom patterns change method name

别说谁变了你拦得住时间么 提交于 2019-11-29 00:29:35
问题 I want to change method signature from public static async Task Load() to public static async Task LoadAsync() How to define a custom patterns in ReSharper? 回答1: If I understood you correctly, you want to define a custom pattern to change async Task Method() signature to async Task MethodAsync() . If so, this is possible by using Custom Patterns! For this, go to ReSharper's Options, then Code Inspection → Custom Patterns : Click Add Pattern In the new dialog, make sure Replace is selected

How to stop Resharper from line breaking after return keyword for long lines?

我们两清 提交于 2019-11-28 08:55:20
When I auto format with Resharper CTRL + ALT + SHIFT + F for lines longer than max line length (in my case say it's 80 characters), I get the following: return View(new ViewModel { Identifier = identifier, Files = service.AllFiles() }); But what I really want is it not to wrap after the "return" keyword (i.e. not have the return keyword on a line all on its own), like so: return View(new ViewModel { Identifier = identifier, Files = service.AllFiles() }); Does anyone know how to "configure" Resharper to make this happen? :) Here's another example, here's what I'm seeing now: return repository

How to stop Resharper from line breaking after return keyword for long lines?

我的梦境 提交于 2019-11-27 02:31:06
问题 When I auto format with Resharper CTRL + ALT + SHIFT + F for lines longer than max line length (in my case say it's 80 characters), I get the following: return View(new ViewModel { Identifier = identifier, Files = service.AllFiles() }); But what I really want is it not to wrap after the "return" keyword (i.e. not have the return keyword on a line all on its own), like so: return View(new ViewModel { Identifier = identifier, Files = service.AllFiles() }); Does anyone know how to "configure"