Feature Request: uVision
When I am writing an application I like to have the header files in a project group so that they are easily accessible. Right clicking a group, selecting "Add New Item to Group" and creating a .c file automatically adds it to that group and I think it would be convenient to have the same functionality for a .h file. In fact all the other file types are automatically added to the selected group its just .h files that are different.
I know that the .h file is accessible once it is included in a .c file by expanding the tree in the project view. I do not find it convenient however when I have to search through about 50 .h files associated to that .c file, the majority of which are part of some 3rd party library (e.g. RTOS and STM Hal libraries), to find the one I want.
Hello Stephen,
We can already add individual header files into a folder from the Project Window, just like a source file. Just search for existing header files, instead of existing C files in the Windows file search. When an already-included header file is added directly into the Project Window, it does not impact the build, at all. I think it's ignored, and only useful for the editor's convenience.
The trick is the tools don't know which header files are important, until after the first compile/link, when the include paths are searched and the header file dependencies are resolved. We'd still be looking at lots of header files with any automated process that's trying to be thorough and wants to display the dependencies.
Thanks, Zack
Hi Zack,
I'm sorry I don't think I made it clear what it is that I would like to see added to uVision.
It is possible to right click on a group and select "Add New Item to Group". Currently using this to create a .h file does not add that file to group. Instead you have to create the header file separately then add the existing file to the group.
I thought it would be more convenient to allow header files to be added to a group like every other file type available when clicking "Add New Item to Group". There is no need for the tools to decide if the file is important because the user is specifically asking that the file is automatically added to the group after creation.
I am assuming that header files are treated differently on purpose and not logging the difference as a bug.
I understand now, and have reproduced the issue.
I have created an online support case. Feel free to login at silver.arm.com/support using your email as username to view more information, and status updates.
I think this issue can be considered a defect. IDE offers header file as a selection in the dialog, but the IDE doesn't completely follow through. It creates the file, but fails to add it into the Project window. Workaround is that the user does an extra step, "Add Existing File..." to really add in the header file.
Thanks for creating the case for me Zack.
View all questions in Keil forum