An open API service indexing awesome lists of open source software.

https://github.com/HvyIndustries/crane

PHP Intellisense/code-completion for VS Code
https://github.com/HvyIndustries/crane

code-completion intellisense php plugin productivity productivity-booster vs-code

Last synced: 7 months ago
JSON representation

PHP Intellisense/code-completion for VS Code

Awesome Lists containing this project

README

        

# Crane - PHP code-completion for VS Code

Crane is a productivity enhancement extension for [Visual Studio Code](http://code.visualstudio.com) that provides code-completion for PHP. It has zero dependencies and largely works with projects of any size. It is still in development, and as such there may be bugs and/or missing features.

Please report any bugs that you find in our [issue tracker on GitHub](https://github.com/HvyIndustries/crane/issues).

Follow [@HvyIndustries](https://twitter.com/HvyIndustries) on Twitter for updates!

## How To Get Started

1. Install Crane by pressing F1 in VS Code, then typing `ext install crane`
2. Open a PHP project
3. Check the status bar at the bottom and watch Crane parse all the PHP files it finds

- Optionally, install the PHP Stubs to get code-completion for the built in PHP classes by pressing F1 in VS Code, then typing `crane php stubs` and selecting the appropriate option from the list.

For the best development experience, make sure you have the PHP linter enabled in your user settings, and set it to run `onType` instead of `onSave`!

You can also set `php.suggest.basic` to `false` to disable VS Code's built-in php code completion and avoid duplicate suggestions.

## Demo

![](https://i.imgur.com/a9j3V9u.gif)

---

# What's new in v0.3.7 (latest release)
- Fix issue with including file on Linux

# What's new in v0.3.7
- Disabled bug report link to avoid misleading users into thinking there is a bug
- Upgraded php-parser to 2.0.6 to fix some crashes and freezing
- Added a special case for suggesting php opening tags (` **Another total must have for PHP developers using Visual Studio Code.**
> Jan Hajek

> **Essential extension for every PHP developer, just install :)**
> Marcelo Rodrigo

> **Essential to every PHP developer, recommended!**
> Gabriel Coronado

> That's the tweet I've been waiting for since the first public release of VS Code. Thanks.
> [Bruno Baketaric](https://twitter.com/laphblog/status/719631906598449152)

> omg omg omg omg omg
> [Rich Perez](https://twitter.com/imperez/status/719645661461921793)

> 👌👌👌 super awesome.
> [яєαℓιѕт נανѕтαн](https://twitter.com/RHJOfficial/status/719630044310740992)

## Known Issues

* If you get duplicate suggestions for variables, etc. you can disable VS Code's built-in php code-completion by setting `php.suggest.basic` to `false` in your settings.
* There can be strange behaviour when working with PHP and HTML in the same file.
* If you have a syntax error in a file, you may not get a full list of suggestions for that file.
* Go to definition only works on classes, traits and interfaces

## Links

* [Repository](https://github.com/HvyIndustries/crane)
* [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=HvyIndustries.crane)

**[Please report any bugs you find!](https://github.com/HvyIndustries/crane/issues)**

*"HVY", "HVY Industries" and "Hvy Industries" are trading names of JCKD (UK) Ltd*

*Icon by http://icons8.com/*