在关闭和重新打开之间保留打开的文件 [英] Keep opened files between close and reopen

查看:36
本文介绍了在关闭和重新打开之间保留打开的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我打开某个文件(不创建任何项目),然后关闭并重新打开 VS Code,该文件将被恢复.好的,这就是我想要的.

If I open some single file (without creating any project), and then close and reopen VS Code, the file will be restored. Okay, that's what I want.

但是,如果我打开某个文件,然后关闭 VS Code,然后打开另一个文件,第一个文件将不会重新打开.

But, if I open some file, then close VS Code, and then open another single file, the first file will not be reopened.

有办法解决吗?可能是用户设置"(?)中的一些更改.

Is there way to fix it? Probably, some changes in "User Settings" (?).

我已经试过了

"window.restoreWindows": "all"

但它没有帮助.

推荐答案

window.restoreWindows 的新设置 preserve 已经引入 (#15949) 在 2020 年 11 月 1.52 版中.这应该可以满足您的需求.

A new setting preserve for window.restoreWindows has been introduced (#15949) in version 1.52 November 2020. This should do just what you want.

这篇关于在关闭和重新打开之间保留打开的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆