Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the Visual Studio Code default clone directory

How do you set the default clone directory in Visual Studio Code? After I select Git:Clone, I paste the repository URL, and then I get asked for Parent Directory. How do I set the parent directory to a different default directory?

like image 768
Keith Avatar asked Jun 05 '17 13:06

Keith


People also ask

How do I change the default repo location in Visual Studio?

Click on "Settings" (from either the project Home menu or from the top dropdown menu), then select "Git Settings." You will see a Global Setting of "Default Repository Location" (the one you want). Change it and click Update.

How do I open the default directory in VS Code?

Then from caja right click on a file : open with -> other application . Then select the command code-standard-path and check Remember this application for "..." files . Now everytime you double-click on the specific file from whatever location, vscode will open in that predefined directory or workspace.


1 Answers

There is an option for this in the user settings:

git.defaultCloneDirectory

3rd party edit

Under windows you can press CTRL + , to open the user settings and enter the path to your desired directory with slashes:

"git.defaultCloneDirectory": "E:/yourPath/toYour/gitFolder/" 
like image 98
Christian Studer Avatar answered Oct 04 '22 04:10

Christian Studer