1、新建scala文件夹 2、点击右上角project structure 3、再modules里找的对应模块文件夹,选择mark as中的Sources 4、在global libraries可以选择响应scala版本