技术文我爱编程

phpstorm 增加swoole 自动提示

2018-05-24  本文已影响12325人  麦子时光_新浪

安装完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目录,点击确定。

稍等下,等ide 加载完毕

然后就会发现代码中swoole相关方法函数不再反白了。

上一篇 下一篇

猜你喜欢

热点阅读