You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

PyCharm多参数并行运行时,如何禁止复用输出标签?

How to Configure PyCharm Run Output Tabs for Multiple App Runs

Absolutely, you can tweak PyCharm's settings to either stop reusing run output tabs entirely (so each run gets a fresh tab) or set it to reuse the least recently used tab instead of the active one. Here's how to do both:

Option 1: Create a New Tab for Every Run (No Reuse)

If you want to preserve every run's output in its own distinct tab, follow these steps:

  • Open PyCharm's Settings (Windows/Linux: File > Settings; Mac: PyCharm > Preferences)
  • Navigate to Build, Execution, Deployment > Run/Debug Configurations > Defaults (you can also adjust this for individual run configurations if you don't want it to apply globally)
  • Pick the configuration type you use most (like Python)
  • On the right pane, scroll to the Execution section and check the box for New console for each run
  • Hit Apply then OK to save the change. Now every time you run your app, a brand new output tab will appear, keeping all previous run results intact.

Option 2: Reuse the Least Recently Used Tab

If you don't want an endless stack of tabs but prefer to overwrite the oldest/idle tab instead of your currently active output, do this:

  • Open Settings/Preferences again
  • Go to Build, Execution, Deployment > Console > General Console Settings
  • Look for the Console cycling policy dropdown menu. Select the option labeled Reuse least recently used console (some versions might use wording like "Cycle through consoles" which achieves the same effect)
  • Save your settings. Now when you launch a new run, PyCharm will target the tab that's been unused the longest instead of overwriting your current active output.

A quick tip: If you only need this behavior for a specific project or custom run setup, skip the "Defaults" step and adjust the setting directly in your targeted run configuration (via Run > Edit Configurations).

内容的提问来源于stack exchange,提问作者Shayan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 09:08:49