It really annoys me when software wants to do something beyond the limits of acceptable behavior. Software should not install icons on the desktop, ask me to give out my email address, run background tasks, install malware, or add folders to My Documents, for example. Yet, it seems that most products are guilty of at least one violation of the software moral code. I try to keep the worst of the bad actors off my systems. It’s been a while since I’ve seen RealPlayer, iTunes, or Norton AntiVirus. I still use Jasc Paint Shop Pro 8, because the new post-Corel-buyout versions silently install a service (a background task) that seems to be part of the product’s licensing model.
Unfortunately, some of these products are unavoidable. Most video drivers want to install two or three background tasks – one to apply the hardware settings, one to provide an overcomplicated control panel, and another to provide a cluttery system tray icon. Adobe Reader installs a service that is supposed to make it launch faster the two times per month you need to read a PDF. Visio insists on creating a My Shapes folder for the 1% of users who will create custom shapes. Someone should create a software user’s bill of rights to popularize the notion among developers that these behaviors are bad.
I develop software for a living, primarily for Microsoft platforms. Thus, Microsoft Visual Studio is unavoidable for me. VS is generally a good actor, but it has one annoying vice: it wants to create a folder in My Documents named Visual Studio 2005 (or 2008 if you’re hip). VS wants you to put your projects in this folder. Other things like settings and templates live here as well. Now I find this rather annoying, as I have an existing Projects folder elsewhere that contains my work. I don’t want VS settings or templates to go there. Plus, I find the name “Projects” more correct than “Visual Studio 2008″. One says “Here are the projects that I work on”, and the other says “Here is the stuff I do with Visual Studio”. So the VS default location is less than optimal for me.
Luckily, the Visual Studio folder is fairly easy to move. There are some settings in VS’s Options dialog that look like they do the trick, but they don’t do a complete job. To fully move the folder, you need to edit the registry. The process is the same in both Visual Studio 2005 and 2008, save for the folder name:
- Launch Visual Studio for the first time. VS will create its folder in My Documents and numerous registry keys referring to this folder.
- Decide where your project code should live. In My Documents, I have a Projects folder already.
- Decide where you want the other VS files to live. I created an Application Data folder in My Documents to make a home for my Visual Studio folder. Another good choice would be to use the local application data folder.
- Search the registry for “\Visual Studio 2008″. Edit the matching values to reference the new locations you picked in steps 2 and 3. On my system, there were about 25 values to change.
- Move the actual Visual Studio 2008 folder to the new location.
- Create en empty file named Visual Studio 2008 (no extension) in the place where the VS folder was.
- Run the following command on the empty file:
ATTRIB +S +H +R “Visual Studio 2008″
Steps 6 and 7 make it more difficult for Visual Studio to create a new folder in the wrong place. As there is an existing file of the same name, the create should fail. By applying the system and hidden attributes, the file is not visible in Windows Explorer under typical settings.
4 Comments About “Moving the Visual Studio Folder”
[quote]“Software should not install icons on the desktop, ask me to give out my email address, run background tasks, install malware, or add folders to My Documents, for example. … Someone should create a software user’s bill of rights to popularize the notion among developers that these behaviors are bad.”[/quote]
This is fantastic writing, and it’s so refreshing to see that someone else GETS IT!
I would equate these kinds of trivialities with requiring a manuscript to have periods and paragraph breaks before it can be published. There’s lots of decent coding standards books, but our industry definitely needs a higher-level list of things software should just do or not do, as a minimum requirement to being published.
Totally agree.
After changing the location, I usually just hide the original folders. Your tip is maybe even better.
SQL Server Management Studio is terrible too. It creates a SQL Server Management Studio folder in My Documents AND a Visual Studio 2005 folder (since it’s based on VS 2005 codebase). Ugh!
Thanks for the tip.
Thanks for posting this article; I was looking for a similar fix for SQL Server Management Studio.
I ended up doing a values search for “%USERPROFILE%\My Documents”, which yielded results for both VS and SSMS.
This is exactly what I was looking for. I HATE software that does stuff I don’t want. MS stuff is especially infamous for stupid folders that I don’t use. Thanks again.