How to trigger "chop" of long arg list
When using VS 2017, is there a way in Resharper 2018.3.1 to trigger "chopping" of a long line of method args? Say you have this,
public void SomeMethod(int arg1, string arg2, bool arg3, string arg4)
{
...
}
And it becomes this,
public void SomeMethod(int arg1,
string arg2,
bool arg3,
string arg4)
{
...
}
The "chop" option sometimes shows and many times doesn't. Not sure what triggers it to show. Wish there was a way to trigger chop from the menu. Thanks.
Please sign in to leave a comment.
Hello Alex!
Sorry for delay in responding.
There's no way to trigger chopping, but you can select necessary piece of code and press Alt+Enter => Format Selection => Spacious Format (chop).
Thank you.