skip to Main Content

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

Answers


  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

    Login or Signup to reply.
  2. 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".

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search