How to change the pattern used by CodeRush when retrieving a method?

When I retrieve a method in CodeRush, it has some default formatting. I would like to change it. In particular, when I select the location of the extracted method, CodeRush breaks it, directly above the method, I put the location marker in.

So:

When I choose to remove the extracted method, for example: Extract Method Location

It looks like this: Extract Method Results

I want it to have some control over how the method looks, at the moment I want to add some empty lines between it and the next method. How can i do this?

+4
source share
2 answers

Open the DevExpress dialog → Options;

Go to the editor | Code Formatting | The page "Empty lines";

Toggle the option "After a few lines."

+3
source

I requested this here: http://www.devexpress.com/Support/Center/p/S130722.aspx

This is implemented here: http://www.devexpress.com/Support/Center/p/S19229.aspx

Currently, there is a massive formatting subsystem in which I spent 3 hours fighting who is trying to outperform the massive ReSharper formatting subsystem, which should be able to withstand VS Autoformat (CtrlK D) and not always.

Now you know this, I would be glad to receive a brief summary of whether you managed to do what you wanted!

+2
source

All Articles