Skip to content

Commit b062a51

Browse files
author
SlavaRa
committed
Merge pull request #39 from SlavaRa/SlavaRa-patch-1
Update README.md
2 parents ba9b3ba + 016e042 commit b062a51

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,42 @@ Download the latest release. Open the .fdz file with FlashDevelop.
1313
https://github.com/SlavaRa/fdplugin-postfix-code-completion/releases
1414

1515
## Features
16-
Coming soon
16+
Available templates for AS3:
17+
* `.if` – checks boolean expression to be true `if (expr)`
18+
* `.else` – checks boolean expression to be false `if (!expr)`
19+
* `.null` – checks nullable expression to be null `if (expr == null)`
20+
* `.notnull` – checks expression to be non-null `if (expr != null)`
21+
* `.not` – negates value of inner boolean expression `!expr`
22+
* `.foreach` – iterates over collection `foreach (var x in expr)`
23+
* `.foin` - for Object surrounds with loop `for (var key:String in expr)`
24+
* `.foin` - for Dictionary surrounds with loop `for (var key:Object in expr)`
25+
* `.for` – for Array|Vector surrounds with loop `for (var i = 0; i < expr.length; i++)`
26+
* `.for` – for Numeric surrounds with loop `for (var i = 0; i < expr; i++)`
27+
* `.forr` – for Array|Vector reverse loop `for (var i = expr.length - 1; i >= 0; i--)`
28+
* `.forr` – for Numeric reverse loop `for (var i = expr; i >= 0; i--)`
29+
* `.var` – initialize new variable with expression `var x = expr;`
30+
* `.const` – initialize new variable with expression `const x = expr;`
31+
* `.new` – produces instantiation expression for type `new T()`
32+
* `.par` – surrounds outer expression with parentheses `(expr)`
33+
* `.return` – returns value from method/property `return expr;`
34+
* `.while` – uses expression as loop condition `while (expr)`
35+
* `.dowhile` – uses expression as loop condition `do{...} while(expr);`
36+
* `.sel` – selects expression in editor
37+
38+
Available templates for Haxe:
39+
* `.code` - for String expression to be `expr.code`
40+
* `.if` – checks boolean expression to be true `if (expr)`
41+
* `.else` – checks boolean expression to be false `if (!expr)`
42+
* `.null` – checks nullable expression to be null `if (expr == null)`
43+
* `.notnull` – checks expression to be non-null `if (expr != null)`
44+
* `.not` – negates value of inner boolean expression `!expr`
45+
* `.foreach` – iterates over collection `for(it in expr`)
46+
* `.for` – for Array|Vector|Iterator|Iterable surrounds with loop `for (i in 0...expr.Length)`
47+
* `.for` – for Numeric surrounds with loop `for (i in 0...expr)`
48+
* `.var` – initialize new variable with expression `var x = expr;`
49+
* `.new` – produces instantiation expression for type `new T()`
50+
* `.par` – surrounds outer expression with parentheses `(expr)`
51+
* `.return` – returns value from method/property `return expr;`
52+
* `.while` – uses expression as loop condition `while (expr)`
53+
* `.dowhile` – uses expression as loop condition `do{...} while(expr);`
54+
* `.sel` – selects expression in editor

0 commit comments

Comments
 (0)