简体   繁体   中英

how do i display c++ header files inside directories in visual studio

My project has about twenty header files, and it's starting to become a bind to search through the header files to find the header file I want. I have the classes namespaced, and each namespace is essentially a directory. How can I view the header files organised in the directories or namespaces in visual studio 2013 instead of one long list?

Right click on the project and select Add\\New Filter

Enter the name you want and drag the header files into the filter. They won't be put into folders on the file system though (as that would break the #include statements)

这不是一个完美的解决方案,但是类视图将类显示为命名空间列表,这比解决方案视图可以更好地对类进行分组。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM