问题
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