Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User Setting for default save and open locations in VS Code

Is there a property name that can be added to the settings.json for the default open/save location?

like image 991
Jeff Windsor Avatar asked May 27 '15 21:05

Jeff Windsor


People also ask

Where is the default save location in VSCode?

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.

How do I edit the default settings in VS Code?

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.

What are the benefits of VS Code settings?

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.

How do I access the VS Code settings?

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).


1 Answers

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.

like image 109
Benjamin Pasero Avatar answered Nov 15 '22 09:11

Benjamin Pasero