Visual Studio Code never reopens previous file or folder

后端 未结 7 1424
走了就别回头了
走了就别回头了 2020-12-10 00:08

I have the exact opposite Problem of this question: Visual Studio Code always reopens previous file or folder

VSCode never seems to remembery my previously opened fi

7条回答
  •  孤城傲影
    2020-12-10 01:02

    It seems, VsCode only remembers opened files, if you also have a folder opened. It doesn't matter, if this is just a Dummy Folder somewhere on your drive - if you open files outside of this folder, they will be remembered aswell.

    I'm not sure if this is as designed, or a bug.

    Edit: This is a bug and tracked here

    Edit 2: To sum up the answers from below there are now two settings concerning this issue:

    Hot exit has been implemented, which restores files which weren't saved before VS Code is closed. To change this, use this setting:

    files.hotExit: "onExit"
    

    To reopen all files, use this setting:

    window.restoreWindows: "all"
    

    But there is still on open issue with this found here.

    ...

提交回复
热议问题