Features:Completion

From FlashDevelop

(Difference between revisions)
Jump to: navigation, search
(events completion)
Line 10: Line 10:
=== Smart code completion ===
=== Smart code completion ===
{|  
{|  
-
| [http://flashdevelop.org/wikidocs/images/tour/1d-smart-completion.png http://flashdevelop.org/wikidocs/images/tour/mini/1d-smart-completion.gif]
+
| http://flashdevelop.org/wikidocs/images/tour/mini/1d-smart-completion.gif
|valign=top|
|valign=top|
* FlashDevelop's code completion works with your and others classes.
* FlashDevelop's code completion works with your and others classes.
Line 17: Line 17:
|}
|}
{|  
{|  
-
| [http://flashdevelop.org/wikidocs/images/tour/1e-all-types-completion.png http://flashdevelop.org/wikidocs/images/tour/mini/1e-all-types-completion.gif]
+
| http://flashdevelop.org/wikidocs/images/tour/mini/1e-all-types-completion.gif
|valign=top|
|valign=top|
* FlashDevelop knows all your project classes,
* FlashDevelop knows all your project classes,
Line 23: Line 23:
|}
|}
{|  
{|  
-
| [http://flashdevelop.org/wikidocs/images/tour/1f-smart-event-completion.png http://flashdevelop.org/wikidocs/images/tour/mini/1f-smart-event-completion.gif]
+
| http://flashdevelop.org/wikidocs/images/tour/mini/1f-smart-event-completion.gif
|valign=top|
|valign=top|
* '''NEW''': now FlashDevelop completes the events that the object actually dispatches.
* '''NEW''': now FlashDevelop completes the events that the object actually dispatches.
Line 31: Line 31:
=== Typed Array/Vector code completion ===
=== Typed Array/Vector code completion ===
{|
{|
-
|
+
| http://flashdevelop.org/wikidocs/images/tour/mini/1g-vector-completion.gif
-
  var a:/*MovieClip*/Array;
+
-
  var a:Vector.<MovieClip>;
+
-
  ...
+
-
  a.pop(). //completes as MovieClip
+
-
  a[0]. //completes as MovieClip
+
|valign=top|
|valign=top|
-
* Only FlashDevelop offers typed Arrays code completion.
+
* FlashDevelop was the first ActionScript editor with Vector types code completion.
-
* FlashDevelop is/was the first ActionScript editor with Vector code completion.
+
* Only FlashDevelop offers typed Arrays code completion as introduced by [http://mtasc.org mtasc] (available in AS2, AS3)
|}
|}
Line 55: Line 50:
=== Rich code completion ===
=== Rich code completion ===
{|  
{|  
-
| [http://flashdevelop.org/wikidocs/images/tour/1a-rich-completion.png http://flashdevelop.org/wikidocs/images/tour/mini/1a-rich-completion.gif]
+
| http://flashdevelop.org/wikidocs/images/tour/mini/1a-rich-completion.gif
|valign=top|
|valign=top|
* 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.
* 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.
Line 68: Line 63:
|}
|}
{|  
{|  
-
| [http://flashdevelop.org/wikidocs/images/tour/1b-very-rich-completion.png http://flashdevelop.org/wikidocs/images/tour/mini/1b-very-rich-completion.gif]
+
| http://flashdevelop.org/wikidocs/images/tour/mini/1b-very-rich-completion.gif
|valign=top|
|valign=top|
* If the code extracts are not enough, '''press F1''' to get the complete comments from the original code!
* If the code extracts are not enough, '''press F1''' to get the complete comments from the original code!
Line 75: Line 70:
=== Mouse hover for information ===
=== Mouse hover for information ===
{|  
{|  
-
| [http://flashdevelop.org/wikidocs/images/tour/1c-mouse-hover.png http://flashdevelop.org/wikidocs/images/tour/mini/1c-mouse-hover.gif]
+
| http://flashdevelop.org/wikidocs/images/tour/mini/1c-mouse-hover.gif
|valign=top|
|valign=top|
* Move your mouse over anything in your code to see it's type and declaration location.
* Move your mouse over anything in your code to see it's type and declaration location.

Revision as of 18:32, 10 August 2010

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.
1f-smart-event-completion.gif
  • NEW: now FlashDevelop completes the events that the object actually dispatches.
  • And the appropriate Event class will automatically be imported.

Typed Array/Vector code completion

1g-vector-completion.gif
  • FlashDevelop was the first ActionScript editor with Vector types code completion.
  • Only FlashDevelop offers typed Arrays code completion as introduced by mtasc (available in AS2, AS3)

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