'How do I hide or delete `.DS_Store` files once and for all?

I'm using VS Code 1.65.0

I'm trying to hide .DS_Store in side bar, following the instructions from another post https://stackoverflow.com/a/30142299/12214867

enter image description here

The annoying .DS_Store files are still there.

I know I can delete them with a script though, each time I start a new project or add a folder I have to do it over and over again?

How do I hide or delete them once and for all?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source