phpstorm 增加swoole语法提示

问题

  • 使用phpstorm 编辑器做swoole框架时候没有语法提示非常不方便

解决

执行命令:

git clone https://github.com/eaglewu/swoole-ide-helper.git
  1. 打开 phpstorm,左侧 External Libraries 右键 选择 Configure PHP Include Path
  2. 添加 swoole-ide-helper 目录
  3. 点击 apply 和 ok 即可