Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: How to turn off auto select in File Explorer when changing window tabs?

In VSCode, if I have an editor window tab open and I click anywhere in that editor window, the selected file in the File Explorer changes to the file being edited. I would like to prevent that behavior. This is possible in Visual Studio, but I can't seem to find a similar setting in the preferences file of VSCode.

Can anyone provide some suggestions?

like image 294
silverfox1948 Avatar asked Nov 20 '16 20:11

silverfox1948


People also ask

How do I turn off auto suggestions on VS Code?

By default, VS Code shows snippets and completion proposals in one widget. You can control the behavior with the editor. snippetSuggestions setting. To remove snippets from the suggestions widget, set the value to "none" .

How do I switch between tabs in Visual Studio Code?

When using Visual Studio Code on Windows, you can use CTRL + PAGE_UP to switch to the previous tab, and CTRL + PAGE_DN to switch to the next tab. You also have the ability to switch to tabs based on their (non-zero relative) index. You can do so, by pressing and holding ALT , followed by a number (1 through 9).

Does VS Code change tabs to spaces?

By default, VS Code inserts spaces and uses 4 spaces per Tab key. If you'd like to use another default, you can modify the editor.

How do I turn off auto indent on save VS Code?

Save without Formatting Doing the keyboard shortcut: CTRL + K , S.


Video Answer


2 Answers

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

Configuration is "explorer.autoReveal": false

like image 191
alalonde Avatar answered Oct 19 '22 13:10

alalonde


You can't, at least not today. The only thing you can do, is keeping the scroll position when switching tabs. See this answer for the setting: VSCode prevent file Explorer from jumping

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

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

like image 2
kwood Avatar answered Oct 19 '22 12:10

kwood