是否有 vscode 设置指定关闭选项卡时要打开的选项卡?

编程入门 行业动态 更新时间:2024-10-26 20:31:47
本文介绍了是否有 vscode 设置指定关闭选项卡时要打开的选项卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

在 vscode 中关闭选项卡后,最近查看的选项卡会获得焦点.我想改变这种行为,而不是将选项卡集中在关闭的选项卡的右侧.

After you've close a tab in vscode, the most recently viewed tab gets focus. I would like to change that behavior to instead focus the tab to the right of the closed tab.

是否有设置可以更改此设置?

Is there a setting to change this?

推荐答案

此功能已在 2019 年 1 月的 1.31 版中添加.来自 更改日志:

This feature was added in release 1.31 in January 2019. From the changelog:

新设置 workbench.editor.focusRecentEditorAfterClose 允许您更改编辑器选项卡关闭的顺序.默认情况下,选项卡将以最近使用 (MRU) 的顺序关闭.更改此设置允许从右向左关闭标签.

Closing order of editor tabs

A new setting workbench.editor.focusRecentEditorAfterClose allows you to change the order in which editor tabs are closed. By default, tabs will close in most recently used (MRU) order. Changing this setting allows closing tabs from right to left instead.

因此将 "workbench.editor.focusRecentEditorAfterClose": false 添加到您的 settings.json 应该会给您想要的行为.

So adding "workbench.editor.focusRecentEditorAfterClose": false to your settings.json should give you the behaviour you want.

这篇关于是否有 vscode 设置指定关闭选项卡时要打开的选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 05:05:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1148573.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:选项卡   时要   vscode

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!