如何从 Android Studio 的索引中删除目录?
问题描述:
我有一个包含许多子项目的大型项目文件夹.只有 4 个是 Android 项目的一部分,其余都是 C 代码.
I have a large project folder that contains many sub projects. Only 4 are part of the Android project, the rest are C code.
但是,Android Studio 似乎正在索引所有内容,这需要很长时间.
However, it appears that Android Studio is indexing ALL of it, which takes a long time.
如何从索引中排除这些其他目录?
How do I exclude these other directories from indexing?
无法明确执行此操作,模块设置仅列出 Android 项目,因此我无法从那里删除其他文件夹.
There no way to explicitly do it, and the Module Settings only lists the Android projects so I cannot remove the other folders from there.
答
- 在项目资源管理器中选择目录.
- CtrlShiftA 或 ShiftCmdA
- 搜索
Excluded
并按回车键.
- Select the directory in the Project explorer.
- CtrlShiftA or ShiftCmdA
- Search for
Excluded
and hit enter.
小心,我还没有找到重新包含"文件夹的方法.
Careful, I haven't been able to find a way to 're-include' folders back yet.