且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2021-07-20 22:34:23

此功能已在 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.