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)
2
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
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".
Click here to cancel reply.
2
Answers
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
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".