phpstorm 增加swoole 自动提示
2018-05-24 本文已影响12325人
麦子时光_新浪
安装完swoole扩展后,准备敲个例子尝试一下,发现所有的swoole函数全部反白,没有代码提示,看起来很难受,搜索了一番,总算是解决掉这个问题了。
git clone https://github.com/eaglewu/swoole-ide-helper.git
打开phpstorm
![](https://img.haomeiwen.com/i2969094/eaea1383a12a613b.png)
右键External Libraries,选择Configure PHP Include Path
![](https://img.haomeiwen.com/i2969094/e130ca8e30198b8a.png)
选择下载好的swoole-ide-helper目录,点击确定。
![](https://img.haomeiwen.com/i2969094/f256c19da460f858.png)
稍等下,等ide 加载完毕
然后就会发现代码中swoole相关方法函数不再反白了。