return undefined;


Smart Home functionality in Flex Builder 2

Posted in Flash, Flex by Ben Clinkinbeard on the July 26th, 2006

One of the simplest yet most important features I require in a code editor is what is generally referred to as ’smart home’ functionality. This is where pressing the home key will move the cursor to the first non-whitespace character on the line, respecting whatever indentation may exist. Well, apparently this is something that did not make the cut for the initial launch of Flex Builder, but it is quite easy (and free) to accomplish.

  1. Install the awesome FDT ActionScript plugin
  2. ‘Activate’ the plugin by opening a file with it:

That’s it! You can now go back to using FB as your AS editor (the one with the black dot in the image above; it will still be set as the default editor for .as files), but now you have smart home functionality!

The FDT plugin does only provide a 30 day trial before you are required to purchase it, but this will work even after the trial expires. You are not actually using FDT for anything, but something happens when you install and ‘activate’ it that gives Flex Builder this functionality. Hopefully others will find this as useful as I did.

Leave a Reply