问题描述
限时送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:关键词]
发布评论