idea-php-advanced-autocomplete
idea-php-advanced-autocomplete copied to clipboard
Plugin for PhpStorm IDE. Adds auto-completion support for various built-in PHP functions, where parameter is a string literal.
https://www.jetbrains.org/intellij/sdk/docs/basics/testing_plugins/testing_plugins.html
``` AddType . AddDefaultCharset ErrorDocument php_flag php_value RewriteEngine RewriteCond # var = %{NAME} RewriteRule regex [] AddOutputFilterByType mod_gzip_on ... mod_gzip_item_include mod_gzip_item_exclude # dito Header Options + Options - .... ```
```php function action($name, bool $isExternal) { } $foo->action('bar', ); ``` At least for boolean parameters: ```php /*isExternal:*/ true /*isExternal:*/ false ``` Which results in: ```php $foo->action('bar', /*isExternal:*/ true); ```
Hi, I have something like the following code in a class and I wanted to ask if it's possible to have also auto-completion for this use-cases? PS: thanks for this...
```php function_exists(''); ```
Completion popup opens inside normal PHP code when typing spaces etc. It should only work inside PHP strings which are supported by this plugin.
PhpStorm 2022.3 added completion for `DateTime::format`: https://blog.jetbrains.com/phpstorm/2022/09/phpstorm-2022-3-eap-is-open/#example_output_tooltip_for_date_formats
Since 2 years, PhpStorm's built-in phpstorm.meta.php already provides encodings completion: https://github.com/JetBrains/phpstorm-stubs/blob/master/meta/encodings/.phpstorm.meta.php Locales ? https://github.com/JetBrains/phpstorm-stubs/tree/master/meta/locales