This is an extension that provides a resource explorer view similar to Qt Creator for Qt+cpp projects. Its principle is to parse the file structure by analyzing the build results of specific build systems and Qt resource files (.qrc). Currently, it supports CMake, and it is expected to add support for qmake and XMake in the future, as well as relevant support for .qrc files.
Effect Display
Open a Qt project containing CMakeLists.txt in the root directory. Open this extension's view in the Explorer sidebar to display the file resource tree view of the current project.
Notes
When using it for the first time, you may need to click the three dots in the upper right corner of the Sidebar - Explorer to enable Qt File Explorer.
Since the parsing logic depends on build results, there must be build results and a properly set build directory to obtain the correct file structure.
Some folder icons are hollow, such as "Header Files", which indicates that this is not an actual directory but a virtual directory created based on parsing results. Those with solid icons or icons consistent with your file icon theme indicate real existing directories. Although the .qrc file uses a file icon, it can be collapsed/expanded. To open it for editing, use the right-click menu.
Recommended Extensions
ms-vscode.cpptools - For providing C++ language support