安裝完swoole擴展後,準備敲個例子嘗試一下,發現全部的swoole函數所有反白,沒有代碼提示,看起來很難受,搜索了一番,總算是解決掉這個問題了。php
下載swoole-ide-helper-en
git clone https://github.com/eaglewu/swoole-ide-helper.git
打開PHPStormgit
右鍵External Libraries,選擇Configure PHP Include Path github
選擇下載好的swoole-ide-helper目錄,點擊肯定。swoole
而後就會發現代碼中swoole相關方法函數再也不反白了。
框架
PhpStorm支持CI框架的自動補全ide
git clone https://github.com/topdown/phpStorm-CC-Helpers