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