You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This [VScode extension](https://marketplace.visualstudio.com/items?itemName=hakcorp.php-awesome-snippets) provide a fullset of snippets for PHP devs. It's pretty simple !
15
15
16
16
You can use it to avoid wasting time typing Class blocks, function signatures or other common PHP statements.
The code generated is as compliant as possible with [PSR-1](https://www.php-fig.org/psr/psr-1/), [PSR-2](https://www.php-fig.org/psr/psr-2/) and [PSR-12](https://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md) (*Review* stage) coding standard provided by [PHP-FIG](https://www.php-fig.org/).
21
21
@@ -26,16 +26,16 @@ This work is inspired by PHPstorm (*PHP Live Templates*) and other works availab
26
26
## Usage
27
27
Type a snippet (or part of it), press `Enter` or `Tab` (if `editor.tabCompletion` set to `true` in your settings) and the snippet will expand just right there.
28
28
29
-
> ***Tip:*** Snippets provided in this extension support `tab` to next/previous placeholder.
29
+
> ***Tip:*** Snippets provided in this extension support `tab` to next/previous placeholder.
30
30
31
-
These snippets are meant to work in *PHP* context (VScode file). However there are also available in *Plain Text* files for convenience and PHP tags are available in *HTML*one.
31
+
These snippets are meant to work in *PHP* context (VScode file). However there are also available in *Plain Text* files for convenience and PHP tags are available in *HTML*ones.
32
32
33
33
## Features
34
34
35
35
These snippets try to be **as intuitive as possible** and to avoid conflicts with previous or built-in snippets.
36
36
37
37
Placeholders are quite *'easy to use'* though some need optimizations.
38
-
> ***Tip:*** If you want to use snippets and completion in placeholders
38
+
> ***Tip:*** If you want to use snippets and completion in placeholders
39
39
> look at the [Extension settings](#ext-settings) section.
40
40
41
41
----
@@ -70,8 +70,8 @@ Placeholders are quite *'easy to use'* though some need optimizations.
70
70
| --- | --- |
71
71
| arr |`[value, value, ...];`|
72
72
| ark |`['key' => value, 'key' => value,...]`|
73
-
| kv |`'key' => value,`*[1]*|
74
-
| va |`value, `*[1]*|
73
+
| kv |`'key' => value,`**[1]**|
74
+
| va |`value, `**[1]**|
75
75
76
76
***[1]** Addon snippet: use with `arr` or `ark` snippet to add `value` or `key => value` if needed.
77
77
@@ -99,8 +99,7 @@ Placeholders are quite *'easy to use'* though some need optimizations.
99
99
| fna |`function (Type $args): void {...}`|
100
100
| fnu |`function (Type $args) use ($vars): void {...}`|
101
101
102
-
> ***Tip:*** You can call `functions` snippets above without type hinting
103
-
> and return type (**PHP5 compatible**) by using **`-`** as prefix.
102
+
***Tip :*** You can call `functions` snippets above without type hinting and return type (**PHP5 compatible**) by using **`-`** as prefix.
104
103
> *`-fna` for `function ($args) {...}`*(anonymous function block)*
105
104
106
105
----
@@ -112,13 +111,13 @@ Placeholders are quite *'easy to use'* though some need optimizations.
0 commit comments