Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

"Unwrap/Remove" action (delete enclosing statement)

You can use the action to quickly extract or remove statements from an enclosing statement (such as if, while, for, etc.).
The supported statements are: for, foreach, if..elseif...else, try...catch...finally, while...do, do...while, and lone braces.
The statements to be extracted are highlighted with blue, to be removed - with grey.

Unwrap Example:

The code before unwrapping the first else branch:

The code after unwrapping:

Remove Example:

The code before removing the first else branch:

...