IntellijIDEA:如何在选项卡中打开项目而不是从 OSX cli 中打开新窗口?

问题描述 投票:0回答:2

我有一个非常方便的别名

ii='open . -a "IntelliJ IDEA"'
,它有助于从 cli 快速打开项目,从文件夹中执行
ii
。 IDE 配置为在选项卡中打开新项目,当我从 “文件→打开最近的” 菜单中打开新项目时,效果很好。但是当我使用别名打开时,它们总是在单独的窗口中启动。

您知道如何从 cli 打开项目到现有窗口吗?

谢谢

macos intellij-idea command-line-interface
2个回答
7
投票
  1. MacOS 11-12:在 MacOS 设置中设置
    Settings | General | Prefer tabs | Always

MacOS 13-14:

Settings | Desktop & Doc | Windows & Apps | Prefer tabs when opening documents | Always

  1. 如果您有 MacOS 11,请使用此 IDE 设置:

    Preferences | Appearance & Behavior | System Settings | Open project in | Current window

  2. 如果您有 MacOS 12,请使用此 IDE 设置:

    Preferences | Appearance & Behavior | System Settings | Open project in | New window


4
投票

如果您有 MacOS 13:

  1. 使用此系统设置:桌面和 Dock | Windows && 应用程序 |打开文档时首选选项卡 |总是
  2. 使用此 IDE 设置:首选项 |外观与行为 |系统设置|打开项目 |新窗口
© www.soinside.com 2019 - 2024. All rights reserved.