phpstorm如何增加swoole自动提示

下载swoole-ide-helper-en

git clone https://github.com/eaglewu/swoole-ide-helper.git   
  • 打开PHPStorm
    phpstorm swoole自动提示

  • 右键External Libraries,选择Configure PHP Include Path

phpstorm swoole自动提示

选择下载好的swoole-ide-helper目录,点击确定。
然后就会发现代码中swoole相关方法函数不再反白了。

相关文章: