Avg. Rating 5.0

Problem

How can I auto-insert frequently used code snippets in Flash Builder?

Solution

Flash Builder lets you auto-insert frequently used coding patterns by using code templates. You can use the pre-defined templates that are shipped with Flash Builder or you can create your own.

Detailed explanation

Code templates let you speed-up your coding efforts by using code templates. Flash Builder provides over 100 pre-defined templates for ActionScript, CSS, and MXML code.

To insert a code template, just type the name of the template in the code editor, and press Ctrl+Space/Cmd+Space. For example, to insert a 'for loop' in your code, just type fori and press Ctrl+Space/Cmd+Space.

 To display all the available code templates in the context of your code, press Ctrl+Space twice.

To create and edit code templates, go to the Preferences dialog box, and select Flash Builder > Editors > Code Templates.

For more information on using and creating code templates, see http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb56fd3caca12e6bb494bb-7ff8.html

+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes