66 lines
3.5 KiB
Markdown
66 lines
3.5 KiB
Markdown
# PHP IntelliSense
|
|
|
|
[](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-intellisense) [](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-intellisense) [](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-intellisense) [](https://travis-ci.org/felixfbecker/vscode-php-intellisense) [](https://gemnasium.com/felixfbecker/vscode-php-intellisense) [](https://php.net/) [](https://gitter.im/felixfbecker/vscode-php-intellisense?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [](https://github.com/semantic-release/semantic-release)
|
|
|
|
Advanced PHP IntelliSense for Visual Studio Code.
|
|
|
|
**Note: This is just the VS Code extension that spawns the actual language server. The language server itself is implemented purely in PHP [in its own repository](https://github.com/felixfbecker/php-language-server), all features need to be implemented there and all issues should be reported there. You do NOT need to install it manually though, it is bundled in this extension.**
|
|
|
|
## Installation
|
|
|
|
You need at least PHP 7 installed for the extension to work. You can either add it to your PATH or set the `php.executablePath` setting.
|
|
|
|
I recommend to disable VS Code's built-in PHP IntelliSense by setting `php.suggest.basic` to `false` to avoid duplicate suggestions.
|
|
|
|
## Features
|
|
|
|
### Completion
|
|

|
|
|
|
### Signature Help
|
|

|
|
|
|
### Workspace symbol search
|
|

|
|
|
|
### Find all References
|
|

|
|
|
|
### Go to Definition
|
|

|
|
|
|
### Hover
|
|

|
|
|
|

|
|
|
|
### Find all symbols
|
|

|
|
|
|
### Column-accurate error reporting
|
|

|
|
|
|
### Code style linting
|
|
Please use a dedicated extension like [PHP CodeSniffer](https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs).
|
|
|
|
### Format code
|
|
Please use a dedicated extension like [PHP CS Fixer](https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer).
|
|
|
|
## Todo
|
|
- Rename
|
|
- Signature help
|
|
|
|
## Contributing
|
|
|
|
Clone whole repository and in root directory execute:
|
|
```bash
|
|
composer install
|
|
npm install
|
|
npm run build
|
|
code .
|
|
```
|
|
The last command will open the folder in VS Code. Hit `F5` to launch an Extension Development Host with the extension.
|
|
For working on the language server, the easiest way is to replace the language server installation from composer in `vendor/felixfbecker/language-server` with a symlink to your local clone.
|
|
|
|
**For guidance on how to work on the language server, please see the [language server repository](https://github.com/felixfbecker/php-language-server).**
|