Visual Studio作为代码浏览器:如何保留目录结构? [英] Visual Studio as Code Browser : How to preserve the directory structure?

查看:119
本文介绍了Visual Studio作为代码浏览器:如何保留目录结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了一个开源C ++项目的源代码.这是一个Linux项目.因为Visual Studio是我最喜欢的IDE,所以我想用它来浏览&研究代码.我创建了一个空的C ++项目,现在想将源代码添加到解决方案资源管理器中.

I've downloaded source of an opensource C++ project. It is a Linux project. As Visual Studio is my favorite IDE I want to use it to browse & study the code. I created an empty C++ project and now want to add the source code to Solution explorer.

如何将目录结构添加到"Solution Explorer"中.在解决方案资源管理器中将源代码的根文件夹拖放到项目中无法正常工作.它只是将文件添加到项目中,但是目录结构丢失了.

How can I add the directory structure to "Solution Explorer". Dropping the root folder of source code on the project in solution explorer is not working. Its just adding the files to the project but directory structure is lost.

有什么方法可以保留目录结构吗?我不想手动重新创建目录结构.

Is there any way to preserve the directory structure? I do not want to recreate the directory structure manually.

推荐答案

由于您似乎没有得到任何有用的答案,因此我认为应该发布此内容.我不使用VS,但是有两种可能会尊重目录结构的替代浏览工具(免费,开源):

As you didn't seem to be getting any useful answers, I thought I'd post this. I don't use VS, but two possible alternative browsing tools (both free, open source) that do respect directory structures are:

  • Doxygen ,它将为您提供基于浏览器的超链接源视图代码.

  • Doxygen, which will give you a browser-based hyper-linked view of your source code.

代码::块 C ++ IDE(要添加目录和子目录,请使用递归添加"功能.

Code::Blocks a C++ IDE (to add directories and subdirectories, use the "recursive add" feature.

这篇关于Visual Studio作为代码浏览器:如何保留目录结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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