How to change the default project location in Visual Studio

When you create a new project in Visual Studio, it asks you select a project directory. This defaults to one of the following locations:

  • The last directory you manually selected when creating a project.
  • The project location from the settings, which defaults to C:\Users\<UserName>\Source\Repos.

You can override the default project location in the settings:

  1. Open Visual Studio.
  2. Open menu item Tools > Options…
  3. Go to Projects and Solutions > Locations
  4. Set the Projects location to whatever you want.
  5. Click OK.
Visual Studio Options showing default project location

Now when you create a new project, it’ll default to the project location you selected.

Visual Studio showing create new project dialog with new default location

Why isn’t Visual Studio using the Projects Location setting?

You may notice that if you create a new project and manually select a different directory, Visual Studio will start using that directory as the default location going forward. Confusingly, it ignores the value you selected for the Projects Location setting.

You can reset it back to using the Projects Location setting by simply opening Tools > Options and click OK again.

2 thoughts on “How to change the default project location in Visual Studio”

Leave a Reply to Luke Sampson Cancel reply