There is a straight way to do it:
- Right-click a project folder in Project Explorer tree and go to “Properties”.
- Resource -> Resource Filters.
- Add as many exclusion filters for files/folders as you like.
P.S. If your project tree is not updated automatically you may have to press F5 while having input focus in Project Explorer window.