7

I am working on an android project but I see some of the auto-generated code from my file tree as you can see in the picture

How can I hide them (the ones with green color)

enter image description here

2
  • 2
    You might be happier switching to the Project view via the selector above the tree. Right now, it looks like you are on the Android view. Commented Jan 31, 2023 at 15:11
  • Check out the Production view as well, might be useful too. I often end up using the Production view, with some extra stuff added to Bookmarks for quick access. Commented Oct 25 at 21:20

2 Answers 2

3

To hide generated folders in Android Studio:

Go to "File" > "Settings". Navigate to "Editor" > "File Types". Scroll down to "Ignore files and folders". Add the folders you want to hide, such as "build", "gen", and "out". Click "Apply" and "OK".

Sign up to request clarification or add additional context in comments.

1 Comment

Somehow they're still there in Android view…
1

If you are not happy with switching the project view,

You can right click on the directory that you need to hide and select,

Mark Directory as -> excluded

if you want to include a directory back, find the path of your excluded directory and,

right click -> Mark Directory as -> Cancel Exclusion

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.