通过PHPSTORM的设置。


File->Settings->Directories->Add Content Root


选择你想要的目录点击OK就好了。