Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keep opened files between close and reopen

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.

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" (?).

I've already tried

"window.restoreWindows": "all"

but it doesn't help.

enter image description here

like image 832
john c. j. Avatar asked Oct 21 '25 04:10

john c. j.


2 Answers

I think this is the same issue as described in the following feature request:

Keep previously opened files when opening a single file instead of clearing all files (#14675)

Which means that no, this is not possible at the moment.

like image 68
Gama11 Avatar answered Oct 23 '25 23:10

Gama11


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

like image 33
ax. Avatar answered Oct 24 '25 01:10

ax.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!