Posts tagged "editor"

Burrito Feature: Text Navigation

Text navigation? Many users I’ve talked to know how big a fan I am of CamelCase support. In Flash Builder Burrito, we’ve added support in ActionScript, MXML and CSS for moving the cursor between sub-words and we’ve also added punctuation support. To use the feature on Mac use OPTION + ARROW LEFT/RIGHT and on use Windows CTRL + ARROW LEFT/RIGHT. You can combine this with SHIFT to select sub-words as well.

Before Burrito, this feature only used the platform OS navigation text functions. It wasn’t very consistent from left to right and it didn’t know about specific ActionScript, MXML and CSS punctuation.

Here are some use cases for using sub-word navigation:

  • Using the keyboard to move faster on a long line of code. Instead of just HOME, END, arrow keys or the mouse, you can use sub-word navigation to get to the correct word faster
  • Select parts of names faster for copying, editing or removing. For example, if I have “ActionBarButtionSkinBase” and I want to copy out “ButtonSkinBase”, I can use CTRL + SHIFT + ARROW LEFT 3 times to select just the text that I want. That’s a lot more convenient than pressing and holding ARROW LEFT or using the mouse.
Share on Facebook

Time Saver: Auto Indent

Here’s how the new Auto Indent feature saves you time:

  • Indent on paste – Yes, copy and paste code from the web without having to fix indentation
  • Indent on newline – Based on the MXML tag or ActionScript block scope, indentation is inserted automatically
  • New language specific preferences – Under Flash Builder > Indentation: ActionScript and MXML
  • Tabs vs. Spaces – There’s been some confusion about this in the past. We don’t use the Eclipse general text editor preferences in Flash Builder 4. You can specify tabs, spaces and indentation width preferences in Flash Builder > Indentation

I know what you’re thinking, it’s not a full code formatter. I hear ya. I know that many users in the community have used the Flex Formatter plug-in in Flex Builder 3. It’s worth taking a look at, though I haven’t exhaustively tested it with Flash Builder 4.

Share on Facebook