81

Can anyone please let me know how to open multiple projects as tabs in IntelliJ.

In my previous laptop I am able to do. Please find the attached screenshot.

enter image description here

However, in my new laptop whenever I try open multiple projects, it always open in a new window rather than in tabs like above.

harsh pamnani
  • 1,191
  • 1
  • 10
  • 14

11 Answers11

164

"In macOS Big Sur projects can be opened in separate tabs, both in full screen and normal state. This feature is available when Prefer tabs when opening documents option in macOS preferences is set to always" (JBR-2893).

This is shown in the first image: MacOS Preferences

In order to open the project in the same window, change the IntelliJ preferences seen in the second image: IntelliJ Window Preferences

2240
  • 1,547
  • 2
  • 12
  • 30
  • 9
    Thank you for the solution. I tried updating both system preferences and IntelliJ preferences according to your suggestion. However, now it open in the same window and overrides the existing project. So, at a time, I am able to view only 1 project now. – harsh pamnani Dec 29 '20 at 17:08
  • 79
    This answer is mostly correct. However, I just had this problem myself and in IntelliJ, under System Settings, the "Open Project in" setting needs to be set to New Window. Mac will then treat windows as tabs. – Matt Reichard Jan 27 '21 at 19:44
  • 4
    This no longer works for me in BigSur `11.4` – Norgul May 27 '21 at 06:24
  • Thanks man, this was exactly what I searching for, but didn't know it was possible. – Edwin Clement Jul 21 '21 at 19:16
  • 1
    You'd think GoLand and IntelliJ function the same way, but I had to do it differently. I enabled "Prefer tabs: Always" in Big Sur (11.5), but had to set "Open project in: New window" in GoLand (2021.2). – Rónán Ó Braonáin Aug 05 '21 at 23:41
  • @harshpamnani Try with selecting `Reopen projects on startup` option. – duplex143 Nov 15 '21 at 07:22
  • 1
    second setting is not required, let it be in new window. – Vipul Pandey Nov 17 '21 at 07:36
  • 4
    This feature no longer works for me! I have macOS Monterey 12.0.1. IntelliJ IDEA 2021.2.3 (Community Edition) If I use settings in intelliJ as Open in -> New Window - then it opens the project in 2nd window, and if I use Open in -> Current window, then it just replaces the existing project. In either of the case, it does not open the projects in multiple tabs in the same window. – Ajay Singh Jan 17 '22 at 05:23
  • 12
    I could get this working finally. mac -> General settings need to be 'Prefer tabs- always' and intelliJ settings need to be -> Open Project in 'New Window'. It opens up multiple projects in tabs in the same window then. – Ajay Singh Jan 17 '22 at 05:47
  • Is there a shortcut to switch between project tabs? – Muhammed Ozdogan May 30 '22 at 11:14
  • @Matt Reichard, would be nice to update the current answer, or create a new answer with Matt's caveat seeing as 44 people have upvoted the comment – Viragos Aug 03 '22 at 16:37
  • @MuhammedOzdogan CMD+` (backtick, above Tab) – Ben Aug 04 '22 at 14:27
  • 2
    This is no longer possible in the new UI. All projects are opened in a new window. – user2233706 Jun 17 '23 at 14:55
69

Merge All Project Windows action on macOS

For macOS, Jetbrains introduced the Merge All Project Windows action that pools all opened project windows into one, turning each window into its own tab.

For macOS, we’ve introduced the ability to organize your working space by merging all opened project windows into one, turning each window into its own tab. To perform this action go to Window | Merge All Project Windows.

enter image description here enter image description here enter image description here

Compatibility: IntelliJ IDEA 2022.2+, MacOS

The new UI may not have a support for this

Edit: Even the new UI now supports this.

Saif
  • 2,530
  • 3
  • 27
  • 45
  • 1
    Using Rider on 2022.2 and I don't have the `Merge All Project Windows` option. Any clues? I have it in my other IDE's running 2022.2, but not Rider. – Ben Aug 04 '22 at 14:24
  • 1
    What if we need for any new project to be opened in the merged mode as opposed to doing so manually? – Mostafa Armandi Oct 04 '22 at 08:49
  • @MostafaArmandi Not sure if there's a way to do that. I have added a keyboard shortcut for now so that I can merge it while the new project is still loading. – Saif Oct 04 '22 at 09:09
  • 2
    Please upvote [this](https://youtrack.jetbrains.com/issue/IDEA-303069/Enable-Auto-Merge-All-Project-Windows-for-macOS) issue to make it more visible. – Mostafa Armandi Oct 04 '22 at 20:11
  • 3
    100 points to you. This worked with latest versions of osx and intelliJ. Thanks! – Gonan Oct 18 '22 at 08:52
  • 1
    answer of the year – Sina Miandashti Jan 30 '23 at 10:48
  • Short & easy no need to search detail in preferences, Thanks @saif – slhklc May 05 '23 at 08:24
43

I'm using macOS Monterey (version 12.2.1) and IntelliJ IDEA 2021.3.2 (Community Edition) (build #IC-213.6777.52, built on January 27, 2022). Following settings work for me:

  • macOS: the apple icon on top left corner -> System Preference... -> General -> Prefer tabs -> select always when opening documents
  • IntelliJ: click on IntelliJ IDEA on top left corner of the screen when it is the current window -> Preferences... -> Expand Appearance & Behavior tab to find System Settings tab, click on it (no need to expand) -> Select Open project in New Window -> Click OK to save current settings
fishstick
  • 2,144
  • 1
  • 19
  • 14
25

Above solutions did not work for me, Try checking this:

Go to help -> findAction -> type Registry

look for key "ide.mac.transparentTitleBarAppearance", if it is false value, set this to true.

just toggle this key (false to true or true to false), and restart, it worked for me

Reference : intellij

Prateek Mittal
  • 263
  • 3
  • 5
9

If you're using IDE with New UI, make sure to put your vote here: https://youtrack.jetbrains.com/issue/IDEA-290850

Seems like tabs feature is only available in the old UI at the moment.

UPD: they have added this feature in 2023.1, now you can use it along with the New UI

Andrey Semakin
  • 2,032
  • 1
  • 23
  • 50
5

There's a simple method. If you have two IntelliJ projects open in different windows, simply select:
Window > Merge All Project Windows

enter image description here

This will merge the projects into a single window with multiple tabs:

enter image description here

You will then be able to open new Projects as tabs.

Current setup:

  • Mac OS Ventura 13.2.1
  • IntelliJ IDEA 2022.3.1 (Ultimate Edition)
Keegan Fisher
  • 133
  • 1
  • 8
4

There are a few factors, I noticed:

  • works only if you open several projects by yourself (reopening of closed projects when IDEA starts don't collect projects to tabs)
  • app should be maximised before opening a next project. Even if you have already a few windows opened, opening a next project from maximised window group them (the number of windows won't be changed).

Mac OS Big Sur, IDEA 2021.2.4

4

Update for MacOS Ventura 13.0.1. Following settings work for me and Goland 2021.1:

MacOS Ventura (*): Apple icon in the top left corner -> System Preferences... -> Desktop and Dock -> "Prefer tabs" = "Always"

Goland preferences: Preferences | Appearance & Behavior | System Settings -> "Open project in" = "New window" or "Ask".

(*) Actually I have a German localization. I assume you will find the "Dock" settings.

Simon
  • 41
  • 1
2

This feature is now available on IntelliJ 2020.3.2 for MacOS Big Sur. Below are the full details of the IntelliJ and MacOS version on which this feature is working:

IntelliJ IDEA 2020.3.2 (Ultimate Edition)
Build #IU-203.7148.57, built on January 25, 2021

Runtime version: 11.0.9.1+11-b1145.77 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.16
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Dharman
  • 30,962
  • 25
  • 85
  • 135
harsh pamnani
  • 1,191
  • 1
  • 10
  • 14
  • 1
    What settings are required for it to work correctly? – orome Jul 13 '21 at 16:06
  • When I updated the IntelliJ, it started working without any changes. My current IntelliJ version is IntelliJ IDEA 2021.1.2 (Ultimate Edition) Build #IU-211.7442.40, built on May 31, 2021. If it still does not work, you might have to configure your Mac to make it work. For configuration, I have followed StackOverFlowerProgrammer's answer from above. – harsh pamnani Jul 13 '21 at 21:36
2

This feature is now available on IntelliJ 2020.3.2 for MacOS Big Sur. Simply open a new Project in New Window. Mac will then treat windows as tabs.

1

It works for me with MacOS Monterrey version 12.3.1 and IntelliJ IDEA 2022.1.3 using above configuration for the OS and selecting the New window option on the IDEA preferences instead of Current window option.