How can I hide a specific folder in the file explorer of theia?

How can I hide a specific folder in the file explorer of theia when IDE is loaded? I am looking for some configuration that would solve it.

[original thread by ManishAgrawal1410]

[dhananjayharel]

How can I hide a specific folder in the file explorer of theia when IDE is loaded?
you can use ‘files.exclude’ preferences to hide directories or extensions in the project tree.
You have two ways:
Option1->
Select menu->Files->Settings->Open preferences
Expand ‘Files’ tree you will find exclude:[object Object]
double click on it it and it will open the editor text and make this entries
{
“files.exclude”: {
“/.git”: true,
“/.svn”: true,
“/.hg”: true,
“/CVS”: true,
“**/.DS_Store”: true
}
}
eg: 1st entry is to hide .git directory
you can add more entries here.
Option2->
create OR open
~/.theia/settings.json
and add the above text.
Reload the editor.