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

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

推荐答案

  1. 在项目资源管理器中选择目录.
  2. CtrlShiftAShiftCmdA
  3. 搜索 Excluded 并按回车键.
  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天全站免登陆