如何从Android Studio中的索引删除目录? [英] How do I remove directories from Indexing in Android Studio?

查看:332
本文介绍了如何从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.

这篇关于如何从Android Studio中的索引删除目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆