因为phpstorm2018中的插件与phpstorm9.02的版本路径不一样,所以之前将下载的yaf.auto.complete-master中的Yaf.namespace.php Yaf.underline.php 放入phpstorm9.02中PhpStorm9.0.2\plugins\php\lib php.jar\com\jetbrains\php\lang\psi\stubs\data中的方法已经行不通
解决方法如下:
1、下载文件
https://github.com/xudianyang/yaf.auto.complete
2、打开phpstorm的安装目录 找到plugins\php\lib目录 例如: E:\PhpStorm\plugins\php\lib,新建文件夹vendor
3、将下载的文件解压到E:\PhpStorm\plugins\php\lib\vendor
4、打开PhpStrom,进入File->Settings->Languages & Frameworks->PHP
添加Include path E:\PhpStorm\plugins\php\lib\vendor
5、重启