gpt4 book ai didi

visual-studio-code - 启用或禁用 VS Code 集成终端选项卡?

转载 作者:行者123 更新时间:2023-12-03 01:58:00 27 4
gpt4 key购买 nike

当从“集成终端”窗口使用多个终端时,是否可以获取选项卡而不是选择列表?

最佳答案

终端“选项卡”似乎即将推出 v1.56。请参阅Terminal Tabs release notes 。它们是垂直选项卡 - 如果您愿意,在左侧或右侧的可调整大小的 View 中始终可见。但不像浏览器那样位于顶部的传统选项卡。

Tabs in the terminal [are] available as a preview feature and can beenabled with the following setting:

"terminal.integrated.tabs.enabled": true 

The tabs view is a split pane to the right of two split terminals. Itcontains icons and labels for each terminal instance.

When enabled, the new tabs view will only show by default when thereis at least 2 terminals.

<小时/>

We've tried to mostly align how the new tabs behave with how theexplorer works, here are some of the other behaviors:

  • Double clicking the empty space will create a new terminal.
  • Double clicking the sash will toggle the tabs view width between the "ideal" size which displays all the titles without truncating and anarrow view that shows only the icons.
  • The tabs can be moved to the left side using the terminal.integrated.tabs.location setting.
  • Various other configuration settings available under terminal.integrated.tabs.
<小时/>

Terminal Statuses

Along with tabs, we have introduced the concept of statuses to theterminal. A terminal can have many statuses, each of which representsa state the terminal can be in temporarily, with the highest severityone being displayed next to the tab. Status icons appear to the rightof the terminal title in the tabs view. On hover, details of thestatus and any associated actions are presented.

On a tab associated with a terminal that requires a relaunch, ayellow triangle with an exclamation mark is to the right of theterminal title.

For now, these states are supported:

  • Relaunch needed: A warning icon status is used if extensions want to change a terminal's environment.
  • Disconnected: A plug icon status is used when the terminal loses its connection with its process.
  • Bell: A bell icon appears when the bell is enabled via the terminal.integrated.enableBell setting and the terminal belltriggers.

We plan to support task states soon so that task run status isavailable at a glance even without activating the tab.

更多内容请参见链接。来自内部人士构建:

Terminal Tabs demo

关于visual-studio-code - 启用或禁用 VS Code 集成终端选项卡?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40406096/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com