Excluding files with certain extensions from the tree view

How can I exclude files with a different extension from txt, cpp, java…

ok if you’re here and you want to know the answer just open the settings, go in core, scroll down and you’ll find ignored names. Insert *.exe or whatever extension you want to exclude. Then go to packages, search for tree view, open the setting and make sure the hide ignored names is on.