Features:Completion

From FlashDevelop

(Difference between revisions)
Jump to: navigation, search
m
 
(4 intermediate revisions not shown)
Line 5: Line 5:
| [[Features:Exploration|SWF/SWC exploration]]
| [[Features:Exploration|SWF/SWC exploration]]
| [[Features:Documentation|Code documentation]]
| [[Features:Documentation|Code documentation]]
-
 
== Helpers ==
== Helpers ==
 +
=== Shortcuts ===
 +
 +
* '''Ctrl+Space''' - regular completion list
 +
* '''Ctrl+Alt+Space''' - show all project types
 +
* '''Ctrl+Shift+Space''' - method call tip
 +
 +
=== Smart code completion ===
=== Smart code completion ===
{|  
{|  
Line 16: Line 22:
* See how the list tips are filled with information extracted from the code comments.
* See how the list tips are filled with information extracted from the code comments.
|}
|}
 +
{|  
{|  
| http://flashdevelop.org/wikidocs/images/tour/mini/1e-all-types-completion.gif
| http://flashdevelop.org/wikidocs/images/tour/mini/1e-all-types-completion.gif
Line 22: Line 29:
* so just let FlashDevelop automatically import them for you.
* so just let FlashDevelop automatically import them for you.
|}
|}
 +
{|  
{|  
| http://flashdevelop.org/wikidocs/images/tour/mini/1f-smart-event-completion.gif
| http://flashdevelop.org/wikidocs/images/tour/mini/1f-smart-event-completion.gif
Line 34: Line 42:
|valign=top|
|valign=top|
* FlashDevelop was the first ActionScript editor with Vector types code completion.
* FlashDevelop was the first ActionScript editor with Vector types code completion.
-
* Only FlashDevelop offers typed Arrays code completion as introduced by [http://mtasc.org mtasc] (available in AS2, AS3)
+
* FlashDevelop supports "Strictly typed Arrays" code completion as introduced by [http://mtasc.org mtasc] (available in AS2, AS3)
|}
|}
Line 40: Line 48:
{|
{|
|
|
-
   dynamic class MCProxy extends /*MovieClip*/Proxy {...}   
+
   dynamic class MCProxy  
 +
          extends /*MovieClip*/Proxy {...}   
   ...
   ...
   var mc:MCProxy;
   var mc:MCProxy;

Latest revision as of 10:38, 7 July 2011

Contents

Features Tour

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

Helpers

Shortcuts


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
  • FlashDevelop completes the events that the object actually dispatches (as declared in the class metadatas).
  • 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.
  • FlashDevelop supports "Strictly 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