Features:Completion

From FlashDevelop

(Difference between revisions)
Jump to: navigation, search
m (Rich code completion)
 
(9 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 ===
{|  
{|  
-
| [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 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/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,
* 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
 +
|valign=top|
 +
* 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 ===
 +
{|
 +
| http://flashdevelop.org/wikidocs/images/tour/mini/1g-vector-completion.gif
 +
|valign=top|
 +
* FlashDevelop was the first ActionScript editor with Vector types code completion.
 +
* FlashDevelop supports "Strictly typed Arrays" code completion as introduced by [http://mtasc.org mtasc] (available in AS2, AS3)
 +
|}
 +
 +
=== 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.
|}
|}
=== 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 38: Line 72:
|}
|}
{|  
{|  
-
| [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 45: Line 79:
=== 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.
|}
|}
-
 
=== More? ===
=== More? ===
See [[Features:Generation|Code generation]]
See [[Features:Generation|Code generation]]

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