[英]How to reopen last opened file in vscode
If i close the vscode editor after saving a file and reopen the editor again, the session is not restored.如果我在保存文件后关闭 vscode 编辑器并再次重新打开编辑器,会话不会恢复。 I am unable to find the file in open recent.
我无法在最近打开的文件中找到该文件。 The only way how can I open the file is navigating to the directory in
open
menu.如何打开文件的唯一方法是导航到
open
菜单中的目录。 Thats very annoying is it some problem with my editor or default behaviour?这很烦人是我的编辑器或默认行为有问题吗?
You must have a folder opened to restore previously opened files.您必须打开一个文件夹才能恢复以前打开的文件。
Now open any files, close vscode and re-open.现在打开任何文件,关闭 vscode 并重新打开。 Your files are still in the editor.
您的文件仍在编辑器中。
"window.restoreWindows": "all"
都可以;)
The complete settings are完整的设置是
"window.restoreWindows": "all",
"files.hotExit":"onExitAndWindowClose",
Note that with:请注意,与:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.