I have a very convenient alias ii='open . -a "IntelliJ IDEA"'
that helps to quickly open projects from cli doing ii
from a folder. The IDE is configured to open new projects in tabs and it works well when I do it from the "File → Open Recent" menu. But when I open using the alias, they always start in separate windows.
Do you know how to open projects from cli into an existing window instead?
Thanks
CodePudding user response:
I assume you already set Settings | General | Prefer tabs | Always
in your MacOS settings.
If you have MacOS 11, use this IDE setting:
Preferences | Appearance & Behavior | System Settings | Open project in | Current window
If you have MacOS 12, use this IDE setting:
Preferences | Appearance & Behavior | System Settings | Open project in | New window