Mike Morearty
09 May 2006

Quick fix

David Zuckerman, also on the Flex Builder team, has written a totally awesome extension plugin for Flex Builder. It provides “Quick Fix” – with a quick keystroke or two, you can tell Flex Builder to automatically fix certain common errors and warnings. For example, say you wrote this:

function f()
{
    return "hello";
}

The compiler will warn you that function f() has no type. But, Ctrl-1, Quick Fix, and voilĂ  – Flex Builder guesses that the return value of f() should be of type String:

function f():String
{
    return "hello";
}

Here’s a screenshot of QuickFix adding a type to a variable:

There is lots more. It is highly recommended.

comments powered by Disqus