Commenting code in Flex Builder

Flex Builder provides useful keyboboard shortcuts to comment code. Below are the different ways you can do it.

ActionScript(AS) Code: To toggle

  • Single Line Comment (// Lorem Ipsum)

Select single / multiple lines of code and hit Control+/ (Windows) or Command+/ (Mac OS).

  • Multiple Lines Comment (/* Lorem Ipsum */)

Select single / multiple lines of code and hit Control+Shift+C (Windows) or Command+Shift+C (Mac OS).

MXML Code: To add

  • XML Comment (<!– Lorem Ipsum –> )

Select single / multiple lines of code and hit Control+Shift+C (Windows) or Command+Shift+C (Mac OS).

  • CDATA Block (<![CDATA[
    Lorem Ipsum
    ]]>
    )

Select single / multiple lines of code and hit Control+Shift+D (Windows) or Command+Shift+D (Mac OS).

Advertisements
Tagged ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Advertisements