Visual Studio Code Automatically Changes the Folder Tree When the Navigation Code

Is there a setting to automatically change the Visual Studio code folder tree when navigating the code? Thank you!