Custom plugins for Visual Studio 2015+:
- Generate C++ Project's Filters
- Simple Extension which provide the ability to generate C++ project filters to replicate the folder hierarchy of the underlying sources
- It was originally made to browse easily C++ code hosted on a Linux machine while benefiting of the Visual Studio's features (e.g. GUI, Go to Definition / Declaration, Compile / Debug through SSH, ...)
- Download the
*.vsix
package from the latest release or from Visual Studio gallery - Double click on the downloaded package and follow the instructions
Open an existing C++ solution
In the example below, I drag and dropped a folder into an empty C++ Project, all the files are imported but the whole project is flat as visual studio does not replicate the folder hierarchy of the files for C++ projects
Right click on the project for which you want to generate the filters per folder, a menu Generate C++ Project Filters
will appear (only appearing when right-clicking on a C++ project)
Click on Generate C++ Project Filters
, a confirmation will be required to generate the filters
Once the filters are generated, the extension will automatically reload the current project if needed. Accept the changes made by the extension by clicking yes
As a result, your C++ project will have filters that replicate your C++ sources folder hierarchy
If you are interested in enhancing this extension, you must install Visual Studio 2015 SDK
You have to change the debug settings for the VSIXProject to be able to debug it (Properties -> Debug
)
- Start external program :
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
- Command line arguments:
/rootsuffix EXP