Is there a property name that can be added to the settings.json for the default open/save location?
As you've stated yourself, the default location is the root of your system. At least, if you aren't working in a folder. What you could do, of course, is simply open your ~/Desktop as a folder in VSCode. Then, automatically, your default save location is exactly as you'd like it to be.
By default VS Code shows the Settings editor, but you can still edit the underlying settings.json file by using the Open Settings (JSON) command or by changing your default settings editor with the workbench.settings.editor setting. Depending on your platform, the user settings file is located here: Windows %APPDATA%CodeUsersettings.json.
These settings have all of the benefits of VS Code settings, meaning that they can have default, "User", "Workspace", and "Folder" values. So you can set a global value for C_Cpp.default.cppStandard in your "User" settings and have it apply to all of the folders you open.
Of course, this list is highly subjective as everyone has different backgrounds and preferences. You can access the VS Code settings using either the menu or using the Command Palette. I prefer to use the Command Palette (on a Mac you can press ⇧⌘P to open it).
There is not. The workaround would be to create a shortcut to launch vscode with the location of the folder you want to open on startup. You can append a path as argument for VS Code to open.
In addition, VS Code will always remember the last folder you opened and restore it when you restart.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With