通过PHPSTORM的设置。 File->Settings->Directories->Add Content Root 选择你想要的目录点击OK就好了。 转载于:https://blog.51cto.com/toulen/1911484