如何在 Visual Studio 2010 中更改 ipch 路径 [英] How to change ipch path in Visual Studio 2010

查看:33
本文介绍了如何在 Visual Studio 2010 中更改 ipch 路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到 VS2010 在解决方案文件夹中创建了一些文件(.sdf、.suo、.ipch 等).是否可以更改创建这些文件的文件夹?

I saw that VS2010 creates some files in the solution folder(.sdf, .suo, .ipch, etc). Is it possible to change the folder where these files are created?

谢谢!

推荐答案

ipch 文件夹是由 IntelliSense 系统创建的,它的位置不能在每个解决方案的基础上更改.但是,您可以让 VS 2010 将所有项目的 ipch 文件夹存储在您的 %TEMP%\VC++ 文件夹中.选择工具 > 选项 > 文本编辑器 > C/C++ > 高级.在那里,您会看到一个后备位置部分.将始终使用后备位置更改为真实.将 Fallback Location 留空,它会将它们放在您的 %TEMP% 文件夹中.更改后,您可以删除 ipch 文件夹和 *.sdf &*.opensdf 文件.它们将在后备位置重新创建.请注意,如果您对项目的窗口布局等很挑剔,您可能需要备份这些文件.

The ipch folder is created by the IntelliSense system and it's location cannot be changed on a per-solution basis. However, you can have VS 2010 store all of your projects' ipch folders in your %TEMP%\VC++ folder. Select Tools > Options > Text Editor > C/C++ > Advanced. Once there, you'll see a Fallback Location section. Change Always Use Fallback Location to True. Leave Fallback Location blank and it will put them in your %TEMP% folder. Once you've changed that, you can remove your ipch folder and your *.sdf & *.opensdf files. They will be recreated in the fall-back location. Note, you may want to backup those files if you're picky about the window layout, etc for the project.

我从这个 MSDN 博客文章.另请注意,仍将在与解决方案相同的位置创建 *.suo 文件.我不知道如何改变.

I learned this from this MSDN Blog Post. Also note that a *.suo file will still be created in the same location as your solution. I'm not sure how to change that.

这篇关于如何在 Visual Studio 2010 中更改 ipch 路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆