VSCode prevents file browser scanning

Is there a way to prevent VSCode from switching all over the place when the tab is closed? It goes to the location of the selected tab, but it is very disorienting when opening various files for checking inside lib.

+15
source share
2 answers

This behavior is controlled by the following setting:

"explorer.autoReveal": false 

There are currently no settings for saving the selected file in Explorer, but this at least fixes the scroll position and prevents β€œjumping”.

Update

In current versions, the same option now saves the selected file.

+35
source

After applying "explorer.autoReveal": false , as mentioned above, you can also configure

shortcut to force display of the current file in explorer:

 { "key": "cmd+e", "command": "workbench.files.action.showActiveFileInExplorer" } 
+5
source

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


All Articles