How to open a default workspace when launching Visual Studio Code?

强颜欢笑 提交于 2020-05-12 20:34:56

问题


Software : Visual Studio Code

OS : macOS 10.14

Version : 1.28.2 (1.28.2)

I have a folder that I work on every time with VSC, no other requirements. I want to open this folder as a folder/workspace by default on launch of VSC so that I don't have to browse through and open that workspace again. How can I change settings/ write a script so that when I launch VSC, that workspace opens up automatically.


回答1:


Set the settings

"files.hotExit": "onExitAndWindowClose"
"window.restoreWindows": "folders"

Note if you launch VSC by a file in explorer, it will not open the file in your current workspace and the workspace information will be lost (you'll have to open the workspace manually again on saving)



来源:https://stackoverflow.com/questions/53105535/how-to-open-a-default-workspace-when-launching-visual-studio-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!