如何从Android Studio中的索引删除目录?

如何从Android Studio中的索引删除目录?

问题描述:

我有一个很大的项目文件夹,其中包含许多子项目. Android项目只有4个,其余都是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.

  1. 在项目资源管理器中选择目录.
  2. Ctrl Shift A Shift Cmd A
  3. 搜索Excluded,然后按Enter.
  1. Select the directory in the Project explorer.
  2. CtrlShiftA or ShiftCmdA
  3. Search for Excluded and hit enter.

小心,我还无法找到一种方法来重新包含"文件夹.

Careful, I haven't been able to find a way to 're-include' folders back yet.