VS2010“添加项目"目录更改 [英] VS2010 "Add Item" directory change

查看:97
本文介绍了VS2010“添加项目"目录更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过添加->新建项添加源文件时,有什么方法可以更改Visual Studio 2010使用的默认目录吗?

Is there any way to change the default directory Visual Studio 2010 uses when you add a source file through Add -> New Item?

推荐答案

由于我的评论似乎是实际答案,因此我重新发布:

Since my comment seems to be the actual answer, I repost:

在解决方案资源管理器的工具栏中,有一个按钮显示所有文件"(或者类似的,我使用的是德语版本).这会将视图切换到目录,而不是过滤器.在此视图中,您可以右键单击所需的目标文件夹以添加项目.

In the toolbar of Solution Explorer, there's a button "Show all files" (or similar, I'm using the German version). This switches the view to directories, rather than filters. In this view, you can right-click on the desired target folder to add items.

这实际上并不会更改默认目录,但是由于您必须单击 somewhere 来添加项目,因此这是最简单的方法.

This does not actually change the default directory, but since you have to click somewhere anyway to add an item, this is the easiest approach.

请注意,即使仅使用Visual C ++,我也建议您使用Solution Navigator附带的Productivity Power Tools扩展.在C ++中,它不如.NET强大,但是它仍然具有在C ++中有用的几个功能,并且可以完全替代解决方案资源管理器.

Note that even when only using Visual C++, I'd recommend the Productivity Power Tools extension, which comes with Solution Navigator. In C++, this is not as powerful as with .NET, but it still has several features that are useful in C++ and can fully replace Solution Explorer.

这篇关于VS2010“添加项目"目录更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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