新建文件夹 New / Directory 选中文件夹 右键 Mark Directory As / Sources Root 可以把已经存在的目录设置为 源码目录 设置为普通目录 Mark Directory As / unmark as Sources Root Mark Directory As Sources Root Test Sources Root Resources Root Test Resources Root Excluded Generated Sources Root