Visual Studio - 使用“从现有源向导创建项目”时的新过滤器而不是新文件夹

时间:2021-07-19 23:11:59

I used the Create Project From Existing Code Wizard for Visual Studio 2008, but apparently projects created this way do not allow you to create virtual solution folders, and instead only allow you to create actual system folders. I would like to have the standard project setup of Header Files, Resource Files, and Sources Files, but I seem to be unable to create the virtual files required. Is there any way to change the project so that it allows virtual folders to be created?

我使用Visual Studio 2008的“从现有代码创建项目向导”,但显然以这种方式创建的项目不允许您创建虚拟解决方案文件夹,而只允许您创建实际的系统文件夹。我想要标题文件,资源文件和源文件的标准项目设置,但我似乎无法创建所需的虚拟文件。有没有办法更改项目,以便它允许创建虚拟文件夹?

1 个解决方案

#1


At least for a C++ project created this way (not sure about other languages), the "Show All Files" button/option in the Solution Explorer is enabled which gives the behavior you're seeing.

至少对于以这种方式创建的C ++项目(不确定其他语言),启用了解决方案资源管理器中的“显示所有文件”按钮/选项,它提供了您所看到的行为。

Disable that option by clicking the icon and you'll get the behavior you're looking for.

通过单击图标禁用该选项,您将获得您正在寻找的行为。

#1


At least for a C++ project created this way (not sure about other languages), the "Show All Files" button/option in the Solution Explorer is enabled which gives the behavior you're seeing.

至少对于以这种方式创建的C ++项目(不确定其他语言),启用了解决方案资源管理器中的“显示所有文件”按钮/选项,它提供了您所看到的行为。

Disable that option by clicking the icon and you'll get the behavior you're looking for.

通过单击图标禁用该选项,您将获得您正在寻找的行为。