I have disabled hidden files in the Finder on macOS Sierra, but they still show up in my text editors, such as Visual Studio Code, Sublime Text and PhpStorm.
I have already tried
defaults write com.apple.Finder AppleShowAllFiles NO
killall Finder
This works for the Finder but not for any text editor.