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).
