VSCode: how to disable automatic selection in Explorer when changing window tabs?

In VSCode, if I have an editor window tab, and I click anywhere in this editor window, the selected file in the File Explorer changes to the edited file. I would like to prevent this behavior. This is possible in Visual Studio, but I cannot find a similar setting in the VSCode settings file.

Can anyone suggest some suggestions?

+5
source share
2 answers

This is added, see https://github.com/Microsoft/vscode/issues/14745 .

Configuration "explorer.autoReveal": false

+3
source

You cannot, at least not today. The only thing you can do is keep the scroll position when switching tabs. See this answer for customization: VSCode prevents file explorer scanning

And here is the function request on Github: https://github.com/Microsoft/vscode/issues/14745

(Feel free to add "Thumbs Up" through the Github Reaction at the top so that the request gets more attention in the future, this increases the chances that it will be implemented sooner)

+2
source

Source: https://habr.com/ru/post/1260045/


All Articles