2016-08-25 15:55:00 +00:00
# PHP IntelliSense
2018-07-11 07:37:33 +00:00
[](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://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)
2016-08-25 15:55:00 +00:00
Advanced PHP IntelliSense for Visual Studio Code.
2016-09-05 10:34:17 +00:00
2017-11-03 21:17:10 +00:00
**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.**
2016-09-05 10:34:17 +00:00
2017-02-03 12:31:01 +00:00
## Installation
2017-11-03 21:15:48 +00:00
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.
2016-09-09 07:07:41 +00:00
2017-02-03 12:31:01 +00:00
I recommend to disable VS Code's built-in PHP IntelliSense by setting `php.suggest.basic` to `false` to avoid duplicate suggestions.
2016-08-25 15:55:00 +00:00
## Features
2016-09-02 00:57:42 +00:00
2017-02-03 12:31:01 +00:00
### Completion
2018-11-11 17:32:17 +00:00
2017-02-03 12:31:01 +00:00

2017-12-10 05:55:37 +00:00
### Signature Help
2018-11-11 17:32:17 +00:00
2017-12-10 05:55:37 +00:00

2016-10-26 22:36:12 +00:00
### Workspace symbol search
2018-11-11 17:32:17 +00:00
2016-10-26 22:36:12 +00:00

### Find all References
2018-11-11 17:32:17 +00:00
2016-10-26 22:36:12 +00:00

### Go to Definition
2018-11-11 17:32:17 +00:00
2016-10-26 22:36:12 +00:00

### Hover
2018-11-11 17:32:17 +00:00
2016-10-26 22:36:12 +00:00


2016-09-02 00:57:42 +00:00
### Find all symbols
2018-11-11 17:32:17 +00:00
2016-09-02 00:57:42 +00:00

2016-08-25 15:55:00 +00:00
2016-10-26 22:36:12 +00:00
### Column-accurate error reporting
2018-11-11 17:32:17 +00:00
2016-10-26 22:36:12 +00:00

2018-04-27 00:02:30 +00:00
### Code style linting
2018-11-11 17:32:17 +00:00
2017-11-20 17:07:06 +00:00
Please use a dedicated extension like [PHP CodeSniffer ](https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs ).
2018-04-27 00:02:30 +00:00
### Format code
2018-11-11 17:32:17 +00:00
2018-04-27 00:02:30 +00:00
Please use a dedicated extension like [PHP CS Fixer ](https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer ).
2016-09-04 11:13:13 +00:00
2016-08-25 15:55:00 +00:00
## Todo
2018-11-11 17:32:17 +00:00
- Rename
- Signature help
2016-09-04 11:13:13 +00:00
## Contributing
2016-09-01 13:07:24 +00:00
Clone whole repository and in root directory execute:
2018-11-11 17:32:17 +00:00
2016-09-01 13:07:24 +00:00
```bash
2017-11-03 21:15:48 +00:00
composer install
2016-09-01 13:07:24 +00:00
npm install
2018-04-27 00:00:37 +00:00
npm run build
2016-09-04 09:49:49 +00:00
code .
2016-09-01 13:07:24 +00:00
```
2018-11-11 17:32:17 +00:00
2016-09-04 09:49:49 +00:00
The last command will open the folder in VS Code. Hit `F5` to launch an Extension Development Host with the extension.
2016-09-04 09:52:07 +00:00
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.
2016-09-05 10:34:17 +00:00
**For guidance on how to work on the language server, please see the [language server repository ](https://github.com/felixfbecker/php-language-server ).**