This extension supports only Drupal projects which use composer template drupal/recommended-project.
- syntax highlighting
- hook completion
- twig completion
- service completion
- global variables completion
- code checking Drupal coding standards (phpcs, coder)
- document formatting by standards (phpcbf)
- searching in Drupal API Documentation
- translation autocomplete (php, twig, js)
- validation and autocomplete for YAML files
- PHPStan analysis (PHPStan, phpstan-drupal)
The experimental features turned off by default. But you can turn them on in the extension settings.
Code checking and formatting require the following packages:
composer require --dev squizlabs/php_codesniffer drupal/coder
PHPStan analysis requires the following packages:
composer require --dev phpstan/phpstan phpstan/extension-installer phpstan/phpstan-deprecation-rules mglaman/phpstan-drupal
Package paths can be specified in the extension settings.
For YAML files, the YAML extension must be installed.
The extension parse *.po files inside a module direcory and autocomplete strings
- Autogeneration PO files
- Twig local variable completion