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
- Host: GitHub
- URL: https://github.com/HvyIndustries/crane
- Owner: HvyIndustries
- License: other
- Archived: true
- Created: 2016-03-28T00:00:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T21:41:53.000Z (almost 7 years ago)
- Last Synced: 2024-08-08T01:56:33.923Z (11 months ago)
- Topics: code-completion, intellisense, php, plugin, productivity, productivity-booster, vs-code
- Language: TypeScript
- Homepage: https://hvy.io/crane
- Size: 9.95 MB
- Stars: 240
- Watchers: 17
- Forks: 25
- Open Issues: 142
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: License.txt
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

---
# 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/*