VSCode showing only one file in the tab bar (can&#

2020-02-16 06:41发布

I hit some shortcut and I can't find the setting the turn it off. But opening multiple files doesn't show different tabs.

Here's what I'm seeing

enter image description here

But this is what I'm expecting when I open a new tab

enter image description here

14条回答
等我变得足够好
2楼-- · 2020-02-16 06:52

If you are using VSCODE , try this command + ctrl + w

查看更多
混吃等死
3楼-- · 2020-02-16 06:55

This has nothing to do with setting workbench.editor.showTabs:true.Just double click on the file you want open in new tab and it will VS Code will open it for you in new tab.

查看更多
Fickle 薄情
4楼-- · 2020-02-16 06:56

If I got it right this must be your case: check here. You just need to set this in your configuration file

"workbench.editor.showTabs": false

I also think that in this question the exact opposite is being asked

Hope that some of these help

查看更多
淡お忘
5楼-- · 2020-02-16 06:56

Follow this,

Go to Preferences -> Settings -> UserSettings -> Workbench -> EditorManagement
check "Show Tabs"

and Restart, Enjoy (y)

查看更多
走好不送
6楼-- · 2020-02-16 06:59

By mistake i tap on mac ctrl + command + w button on visual studio code then open file tabs hide.

Then i tap same button Ctrl+ Cmd + w then its again shows

查看更多
再贱就再见
7楼-- · 2020-02-16 07:00

The accepted answer didn't work for me for some reason. But the answer found here: How to config vscode to open files always in a new tab? did.

In short:

In the menu bar, click on File, Preferences, Settings.

Then add this to your settings:

"workbench.editor.enablePreview": false
查看更多
登录 后发表回答