Unwrap code constructs in JavaScript / ActionScript
November 18th, 2009 by Maxim MossienkoSometimes when you are editing JavaScript/ActionScript code, you need to remove, say, an enclosing if statement without touching a current code block.

In Maia you can just invoke Unwrap/Remove action (Control+Shift+Delete in Windows keymap), which allows to precisely select which construct to unwrap:

Voila! The edited code block is unwrapped and in place!

BTW, this handy action works in XML/HTML/JSP files, where it removes enclosing tags.
Enjoy developing with pleasure!
Tags: actionscript, Flex, javascript, maia

Leave a Reply