Author Archive
Unwrap code constructs in JavaScript / ActionScript
Wednesday, November 18th, 2009Sometimes 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!
Inline Variable Refactoring for JavaScript / ActionScript
Monday, September 21st, 2009Next version of IntelliJ IDEA, code named Maia, brings you several new JavaScript and ActionScript refactorings. In this post we showcase one of them — Inline Variable, which works with local variables and ActionScript class fields.

Pressing Control+Alt+N (default Windows keymap) replaces variable occurrences with an initializing expression.

During the inline process, IntelliJ IDEA checks if a variable can be safely replaced and warns if, for example, there are its usages inside a functional expression.
By the way, the Inline Variable refactoring also works in the left part of local variable assignment.
Enjoy developing with pleasure!
Code Inspections for Web Applications
Thursday, September 17th, 2009If you ever coded a Web project, you know that all the errors in those HTML / JavaScript files are detected only during run time. Starting next build IntelliJ IDEA 9 (Maia) will help you to spot the problems much earlier. Just invoke Inspect code action from the Analyze menu on the necessary files.
(more…)
Better Regular Expression Editing in JavaScript and ActionScript
Wednesday, June 3rd, 2009If you ever tried to understand or edit regular expression like this in JavaScript or ActionScript:
Then you are sure to find IntelliJ IDEA 9 a more helpful in this way. Now you can repeatedly press Ctrl+W to see non-capturing groups:
Plus, code completion after \ is also a bit smarter:
Helping You with JavaScript Expressions in CSS
Tuesday, June 2nd, 2009As you may already know, Internet Explorer supports a technique of inserting JavaScript snippets into 
