The is an option explorer.autoReveal in settings (either user or workspace) which controls if the explorer should automatically reveal files when opening them.
- Open VS User Settings (Preferences > User Settings). This will open two side-by-side documents.
- Add a new
"explorer.autoReveal": falsesetting to the User Settings document on the right if it’s not already there. This is so you aren’t editing the Default Setting directly, but instead adding to it. - Save the User Settings file.