|
|
|
Re: #4079- Extract method: doesn't work when selecting block
It shouldn't since the "block" is integral part of the if statement and not a statement or sequence of statements itself. You should either select the whole if statement or only its block without braces. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
Oddly enough, for me selecting the block is quite reasonable way to extract it into a method.