IntelliPHP - AI Autocomplete for PHP#
IntelliPHP is an advanced AI-assisted development tool specifically tailored for PHP programmers. Unlike GitHub Copilot, IntelliPHP operates entirely locally, ensuring that code remains secure and private within their own development environments. IntelliPHP harnesses the power of machine learning to understand PHP code and provide context-aware suggestions.
The primary aim of IntelliPHP is to save developers time spent in typing code. It's designed to offer suggestions ranging from short and highly likely suggestions up to whole lines of code. The model has been trained in-house on vast repositories of PHP code, making it adept at providing accurate and relevant suggestions tailored to PHP development.
Settings#
Setting | Decription |
---|---|
intelliphp.inlineSuggestionsEnabled | Enable or disable inline suggestions in PHP files. |
Disable/Uninstall#
In case you don't want the inline suggestion assistant, and/or you need to save system resources, you can disable or uninstall the entire IntelliPHP extension.
Use VSCode Extensions panel, navigate to extension DEVSENSE.intelli-php-vscode
, and manage it there.
Features#
IntelliPHP is designed to save you time and boost your productivity. Here are some of its key features:
- AI Auto-completion: Enjoy context-aware auto-completion suggestions as you type your PHP code.
- Code Snippets: IntelliPHP provides code snippets and whole lines of code to streamline your development process.
- Framework Support: Whether you're using Laravel, Drupal, WordPress, or any other PHP frameworks, IntelliPHP has you covered.
- Local: IntelliPHP operates locally, no code leaves your machine EVER.
- Speed: IntelliPHP was designed to run efficiently on CPU, no GPU is required! The suggestions are returned without any latency penalty caused by the network.
Accepting suggestions#
When IntelliPHP offers a suggestion, you can effortlessly incorporate it into your code:
Accepting Suggestions: Simply press TAB to accept a suggestion. If you've already partially typed a suggestion, the first TAB will complete the first part, and a second TAB will finish the rest.
You can also accept just a current word in the offered suggestion by pressing Ctrl + Right Arrow.
Snippets: IntelliPHP intelligently identifies parts of the suggestion that require developer input and places the cursor there. You can then easily fill in the necessary details. Pressing TAB will navigate to the next input location within the suggestion, helping you efficiently complete the snippet. If there are no more input locations, pressing TAB will take you to the end of the suggestion, allowing you to continue your coding seamlessly.
Continuous Typing: If a suggestion isn't what you need, continue typing, and the suggestion will disappear. A new one might appear if it's a better fit for your code.
Pre-selecting the item in the completion list#
When you are using IntelliPHP with PHP extension you will get intelligent pre-selection of the most probable item in the completion list.
Troubleshooting#
- Check the log output in VSCode's OUTPUT window, tab "IntelliPHP".
- Ensure, the setting
editor.inlineSuggest.enabled
istrue
. - Check the license state in IntelliPHP About. Use command
IntelliPHP: About ...
to open the about page.