Features:Completion

From FlashDevelop

(Difference between revisions)
Jump to: navigation, search
Line 28: Line 28:
   var a:/*MovieClip*/Array;
   var a:/*MovieClip*/Array;
   var a:Vector.<MovieClip>;
   var a:Vector.<MovieClip>;
 +
  ...
   a.pop(). //completes as MovieClip
   a.pop(). //completes as MovieClip
   a[0]. //completes as MovieClip
   a[0]. //completes as MovieClip
Line 33: Line 34:
* Only FlashDevelop offers typed Arrays code completion.
* Only FlashDevelop offers typed Arrays code completion.
* FlashDevelop is/was the first ActionScript editor with Vector code completion.
* FlashDevelop is/was the first ActionScript editor with Vector code completion.
 +
|}
 +
 +
=== Smart Proxy typing ===
 +
{|
 +
|
 +
  dynamic class MCProxy extends /*MovieClip*/Proxy {...} 
 +
  ...
 +
  var mc:MCProxy;
 +
  mc. //completes as MovieClip
 +
|valign=top|
 +
* FlashDevelop offers a very smart code completion for Proxy classes - use them as easily as the "proxied" type.
|}
|}

Revision as of 21:38, 31 May 2008

Contents

Features Tour

Interface | Code completion | Code generation | SWF/SWC exploration | Code documentation


Helpers

Smart code completion

1d-smart-completion.gif
  • FlashDevelop's code completion works with your and others classes.
  • Press Tab to expand usual code snippets (function, get/set, for, while, if,...).
  • See how the list tips are filled with information extracted from the code comments.
1e-all-types-completion.gif
  • FlashDevelop knows all your project classes,
  • so just let FlashDevelop automatically import them for you.

Typed Array/Vector code completion

 var a:/*MovieClip*/Array;
 var a:Vector.<MovieClip>;
 ...
 a.pop(). //completes as MovieClip
 a[0]. //completes as MovieClip
  • Only FlashDevelop offers typed Arrays code completion.
  • FlashDevelop is/was the first ActionScript editor with Vector code completion.

Smart Proxy typing

 dynamic class MCProxy extends /*MovieClip*/Proxy {...}  
 ...
 var mc:MCProxy;
 mc. //completes as MovieClip
  • FlashDevelop offers a very smart code completion for Proxy classes - use them as easily as the "proxied" type.

Rich code completion

1a-rich-completion.gif
  • FlashDevelop has a rich code completion - the code call-tips show you the methods parameters and event extracts information from the original code's documentation.
  • Recognized code comments syntax:
 /**
  * Javadoc standart comment block
  */
 <your declaration here>
 
 /// custom "3 slashes" line comments
 <your declaration here>
1b-very-rich-completion.gif
  • If the code extracts are not enough, press F1 to get the complete comments from the original code!

Mouse hover for information

1c-mouse-hover.gif
  • Move your mouse over anything in your code to see it's type and declaration location.

More?

See Code generation

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox