Do you use Eclipse for development? Or any IDE based on Eclipse? (FlexBuilder / IDEforLaszlo??)
Karan sent a nice post about tips on using Eclipse more effectively. Shortcuts and key combinations that would make it faster to write (and clean up) code!
Taking an excerpt:
I think of Quick Fix as a tool for writing code, not something that just corrects accidental errors. Instead of trying to type perfect code and using Quick Fix only when you make a mistake, try intentionally leaving out code, then using Quick Fix to add it in. For example, call a function that isnโt defined, passing in all the arguments you want to to take. Use Ctrl-1, Enter to create an empty version of the function with all the right parameter types. I also like Quick Fix for creating casts. I assign an expression to a variable without a cast, then use Quick Fix to add it in.
Instead of declaring a variable and then assiging the value of an expression to it, try just writing the expression, then use Quick Assist โ Assign to Field (Ctrl-2 L) to generate the declaration. The variable name will be highlighted and the drop down gives you several reasonable alternatives to use for the variable name. Tab again to get to the type to choose an alternative. For example if you had new ArrayList
() and used Assign to Field you might choose List from the list of type alternatives.
Looks interesting ๐