I have VS Code 1.15.1 and when I work at two projects at once, I choose File -> New Window and open the second project. Clicking File -> New Window opens new window with VS Code. On my other computer (not sure about the VS Code version there), when I click File -> New Window, instead of opening new window, it will rather open new tab, so that I end up with two tabs in one window, each tab for one project and the active tab occupies whole screen estate.
Any ideas what should I change in Settings to achieve this "single window, multiple tabs" layout when having multiple projects?
I use macos (not sure if OS may be somehow related to the window management settings)
- Go to Preferences > Settings.
- Search for
native tabs
- Check the checkbox
- Code will prompt for restart to take effect.
- After restart, make sure you have multiple projects open. And then merge all windows as shown below:
- Enjoy multiple tabs in single window.
Note: I think this applies to all Mac OS >= Sierra. Tested with Catalina, Big Sur, Ventura, Sonoma recently.
answered Apr 2, 2019 at 8:29
Tenzin ChemiTenzin Chemi
5,9013 gold badges30 silver badges33 bronze badges
4
Just set in your user settings
"window.nativeTabs": true
and do Window -> Merge All Windows
note: If you have High Sierra installed, that might be an issue.
Here's the link: Better macOS native window tabs support
2
In Mac OS, there is a system setting outside of VS Code. Set this and then opening files/folders from the command line will also automatically open the file/folder in a new tab instead of a new window.
In MacOS 12.3 (Monterrey) this is under:
- System Preferences > General > Prefer tabs ____ when opening documents.
Change this setting to always. (The default is in full screen).
You might additionally need to set the setting in VS Code "window.nativeTabs": true
as the other commenters have already suggested.
1
I'm using vscode 1.81.1, and you just need to go to settings -> window. Check the Native Tabs (Applies to all profiles). It will prompt for a restart, do that and you're good to go
1
Explore related questions
See similar questions with these tags.