[英]How do I open a c++ project folder in visual studio?
I have a c++ project with lots of folders and compiles to lots of different executables, I want to open the entire thing in visual studio and have it keep the folder structure of my project.我有一个 C++ 项目,有很多文件夹并编译成很多不同的可执行文件,我想在 Visual Studio 中打开整个东西并让它保持我项目的文件夹结构。
Right now when try to create a new VS project and import my non-VS c++ project, it automatically puts all header files in one folder and source files in another completely ignoring my folder structure.现在,当尝试创建一个新的 VS 项目并导入我的非 VS C++ 项目时,它会自动将所有头文件放在一个文件夹中,将源文件放在另一个文件夹中,完全忽略我的文件夹结构。 How do I get visual studio to keep my folder structure when opening a C++ project that's not created with visual studio?打开不是用 Visual Studio 创建的 C++ 项目时,如何让 Visual Studio 保持我的文件夹结构?
I suppose you can select the project and then select Show All Files
from Solution Explorer
tool bar.我想您可以选择项目,然后从Solution Explorer
工具栏中选择Show All Files
。 You can then Include and Exclude files/folders from the project directory.然后,您可以从项目目录中包含和排除文件/文件夹。
Right click the folder you want them to be in in Solution Explorer , select Add->Existing Item...右键单击您希望它们在解决方案资源管理器中所在的文件夹,选择添加->现有项目...
This skips a lot of the nice updating/verifying performed when you create a new VS project from existing files but is one way to structure a lot of files.这跳过了从现有文件创建新 VS 项目时执行的许多不错的更新/验证,但这是构建大量文件的一种方法。
I'd prefer to manage them within Solution Explorer but I feel this is so obvious you either dissapprove or have a prohibitively large number of files to hunt and sort them with the small Solution Explorer window pane.我更喜欢在解决方案资源管理器中管理它们,但我觉得这太明显了,你要么不赞成,要么有大量的文件需要使用解决方案资源管理器的小窗口窗格来搜索和排序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.