visual-studio-code

VS Code: disable linking between open files and explorer


Can I disable the function link with editor in Visual Studio Code?

My project has a lot of files, so the explorer tree is long, but when I open an editor tab, this file will be auto focused on explorer panel. How can I disable that feature?

The same feature in eclipse:

This function in eclipse


Solution

  • Can I disable the function link with editor in visual code?

    Yep, just add "explorer.autoReveal": false to your VS Code configuration.

    Additionally, with v.1.46, you can also set "explorer.autoReveal": "focusNoScroll". This keeps the focus to the current file, but does not scroll the explorer.