ADOBE FLEX BUILDER 3
Using Adobe Flex Builder 3
118
Apply syntax coloring preferences
Open the Preferences dialog and select Flex > Editors > Syntax Coloring.
Default font colors can also be configured on the Text Editors and Colors and Fonts Preferences pages (see
Window > Preferences > General > Appearance > and Window > Preferences > General > Editors > Text
Editors).
Using the Problems view
As you enter and save your code, Flex Builder compiles it in the background and displays syntax errors and warnings
(problems) to you in the Problems view. Each error or warning contains a message, the file and folder in which it is
located, and its line number in the file. When you double-click on a line of code, the file is opened in the editor and
the line of code is highlighted.
Go to the line of code where an error or warning occurs
Double-click a problem in the Problems view; or select a problem and then right-click (Windows) or Control-
click (Mac OS) to display the context menu and select Go To.
Code editing keyboard shortcuts
The following table contains a list of keyboard shortcuts that are useful when editing code.
ADOBE FLEX BUILDER 3
Using Adobe Flex Builder 3
119
For a complete list of available keyboard shortcuts, see Accessing keyboard shortcuts” on page 61. For information
about editing existing or creating new keyboard shortcuts, see Changing keyboard shortcuts” on page 58.
Name Keyboard shortcut Description
Switch between Source and
Design mode
Control+`(Left Quote) Switches between the MXML editor’s Source and Design
modes.
Go to Documentation (Flex
Builder
plug-in)
Find in API Reference
(Flex Builder stand-alone)
Shift+F2 When you edit MXML or ActionScript, selecting a
language element and pressing Shift+F2 displays
language reference Help for the selected element. For
more information, see
“Getting help while writing code”
on page 107.
Context-sensitive Help F1 (Windows)
Command+Shift+/ (Mac OS)
Displays context-sensitive Help for the currently selected
workbench element (editor, view, dialog box, and so on).
For more information, see
“Using the Flex Builder help
system” on page 3.
Add Block Comment Control+Shift+C (Windows)
Command+Shift+C (Mac OS)
Adds block comment formatting to the currently selected
lines of code or adds a comment at the insertion point. For
more information, see
Adding comments and comment
blocks” on page 112.
Add CDATA Control+Shift+D (Windows)
Command+Shift+D (Mac OS)
Adds a CDATA statement at the insertion point so that you
can add
ActionScript to an MXML document.
Find Matching Bracket Control+Shift+P (Windows)
Command+Shift+P (Mac OS)
Moves the cursor to the matching bracket of the selected
code statement.
Content Assist Control+Space (Windows)
Command+Shift+Space (Mac OS)
Displays code hinting. For more information, see “Using
Content Assist” on page 106.
Find All Declarations in Work-
space
Control+G (Windows)
Command+G (Mac OS)
Finds declarations in your code base. See “Finding refer-
ences and refactoring codeon page 113.
Find All References in Workspace Control+Shift+G (Windows)
Command+Shift+G (Mac OS)
Finds references to identifiers in your code base. See
“Finding references and refactoring code” on page 113
Go to Definition F3 Open the source of an external code definition. For more
information, see
“Opening code definitions” on page 110.
Go to Line Control+L (Windows)
Command+L (Mac OS)
Displays the Go to Line dialog box where you can enter a
line number and navigate to it in the editor.
Last Edit Location Control+Q (Windows)
Control+Q (Mac OS)
Highlights the last edited line of code.
Mark Occurrences Marks every occurrence of the selected item in code.
Organize Imports Control+Shift+O (Windows)
Command+Shift+O (Mac OS)
When editing ActionScript, using this keyboard shortcut
alphabetizes any import statements contained in the
document. For more information, see
“Organizing import
statements” on page 111.
Open Type Control+Shift+T (Windows)
Command+Shift+T (Mac OS)
Quickly browse all class types. For more information, see
“Browsing and opening class types” on page 111.
ADOBE FLEX BUILDER 3
Using Adobe Flex Builder 3
120
Open Resource Control+Shift+R (Windows)
Command+Shift+R (Mac OS)
Displays the Open Resource dialog box where you can
quickly search for and open a resource in the editor.
Quick Outline Control+O (Windows and Mac OS) Displays the Outline view in Quick mode in the editor. For
more information, see
“Using Quick Outline view in the
editor” on page 109.
Name Keyboard shortcut Description

Get ADOBE® FLEX® BUILDER™ 3: USING ADOBE FLEX BUILDER 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.