简体   繁体   English

更改Visual Studio 2015可视化工具和StartPages文件夹的位置

[英]Change Visual Studio 2015 Visualizers and StartPages folder location

I managed to change the default project folder location on Visual Studio 2015 simply changing the available options. 我设法更改了Visual Studio 2015上的默认项目文件夹位置,只是更改了可用选项。

But I still get both Visualizers and StartPages folder being created in the old folder every time I launch Visual Studio. 但是,每次启动Visual Studio时,仍会在旧文件夹中同时创建Visualizers和StartPages文件夹。

If I delete the folder they are automatically created again. 如果删除该文件夹,它们将再次自动创建。

How can I make this folder follow the default location of my projects and settings? 如何使该文件夹遵循项目和设置的默认位置?

I understand the frustration, as this is something I always like to modify myself. 我了解挫折感,因为这是我一直喜欢修改的东西。

There is a registry key that you can modify the path in that should handle the StartPages location. 有一个注册表项,您可以修改应该处理StartPages位置的路径。 That is at HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\14.0 (for VS 2015) and it's called VisualStudioLocation . 该目录位于HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\14.0 (适用于VS 2015),称为VisualStudioLocation You can modify its path to match your custom location in the same way you changed the ones available in the Options... dialog. 您可以按照更改“ 选项...”对话框中可用路径的相同方式,修改其路径以匹配您的自定义位置。

While you're there, you'll see more path keys whose names begin with " Default " that you also might want to modify. 在那里,您会看到更多路径键,它们的名称都以“ Default ”开头,您可能还需要对其进行修改。 I can't be certain which one handles the Visualizers folder, but I have modified them all, and my Visualizers folder now goes to my custom location, along with StartPages and everything else. 我不确定哪个可以处理Visualizers文件夹,但是我已经对其全部进行了修改,现在我的Visualizers文件夹以及StartPages和其他所有文件都转到了我的自定义位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM