VS Code: disable linking between open files and explorer
Visual Studio-CodeVisual Studio-Code Problem Overview
Visual Studio-Code Solutions
Solution 1 - Visual Studio-Code
> Can I disable the function link with editor in visual code?
Yep, just add "explorer.autoReveal": false
to your VS Code configuration.
Solution 2 - Visual Studio-Code
- CTRL+SHIFT+P , and open User Settings
-
Type Auto Reveal in the search box
-
Uncheck the auto reveal property as highlighted below
Solution 3 - Visual Studio-Code
Using VSCode in 2021
A solution similar as a Toggle Button is disabling the Auto Reveal, and choosing to Reveal when you desire, actually, it's better than a Toggle Button
Step 1:
Type: CTRL+, , and open User Settings
Or go to the menu File -> Preferences -> Settings
Type Auto Reveal in the search box
Step 2:
Click on file's tab with the right button and choose Reveal in Side Bar
And the file will be synchronized in the Explorer Side Bar
Adicional Step:
You can add a keyboard shortcut to use the keyboard to synchronize the editor window with file explorer:
Solution 4 - Visual Studio-Code
I found the combination of setting the "explorer.autoReveal"
to false
and installing the locate this document extension very productive.