VS Code: disable linking between open files and explorer
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:
- CTRL+SHIFT+P , and open User Settings
Type Auto Reveal in the search box
Uncheck the auto reveal property as highlighted below
Can I disable the function link with editor in visual code?
Yep, just add "explorer.autoReveal": false
to your VS Code configuration.