Share via


I want to move my Visual Studio Documents folder, $(VisualStudioDir), but Settings folder regenerates...

Question

Friday, May 6, 2016 6:52 AM

I want to move my Visual Studio Documents folder by editing the value of macro $(VisualStudioDir)

Visual Studio Documents folder installed to directory "c:\users\user\documents\visual studio 2015" [olddir].

I want to move it to another directory [newdir].

I have moved files of [olddir] to [newdir] and edited project properties so project, debug, release, etc output goes to [newdir].

But subfolders "Settings" and "Backups" regenerate in [olddir].

I want to change the value of macro $(VisualStudioDir) which directs this output.

Tried Properties sheet Macro dialog - could not edit $(VisualStudioDir).

Macro $(VisualStudioDir) must be written somewhere - where, and how do I edit it?

I have Community edition.  Do I need a higher edition to edit macro $(VisualStudioDir) in the macro dialog?

Aleph-1,

Visual Studio 2015 Community edition on Windows 10 64-bit PC,

miserably contained within a pesky dialog whilst in sight of the infinite

All replies (2)

Friday, May 6, 2016 8:48 AM âś…Answered

Hi,

you shouln't change the makro. Instead you should do these steps:

  • Go to Tools -> Options: Projects and Solutions -> General and change the locations for projects and templates
  • Go to HKCU\Software\Microsoft\VisualStudio\14.0 and change the paths in there, too (That was DefaultNewProjItemLocation and VisualStudioLocation for me in my tests).

That should do the trick. 

With kind regards,

Konrad


Thursday, June 2, 2016 3:14 AM

Konrad,

I missed your response until now - thanks for answering.

I have to think about this carefully first.

Richard Davey